Hi Guyz,
My requirement is to empty out a PS file but not to delete.
How would I do that. Is there any Utility. If any other
way, plz answer. Thanks.
Answer Posted / bill cecchini
Use the dataset itself to get the required DCB attributes.
//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD DUMMY,DCB=USERID.DATASET
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
when does a dataset go uncataloged?
How do you create a temporary dataset?
How is a type of file defined in the jcl that executes the cobol program?
What is the purpose of dd dummy statement?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What do you understand by the term notcat 2 – gs?
What statement can be used to send data to another mvs jes3 node?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
Why include statement is used in a jcl?
Is automatic restart possible in jcl? If yes, how?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
what is JCL?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
Explain the jcl exec statement?