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 / garry
Try This :
//JOBCARD
//STEP1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(MOD,DELETE,DELETE)
May need to code DCB and SPACE parameter.
//DD2 DD DSN=FILE1,DISP=(NEW,CATLG,CATLG)
MUST need to code DCB and SPACE parameter.
//
Ply respond with YES or NO.
Thanks
Garry
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What are s0c1, s0c4, s0c5, s0c7 and socb?
Name what parameter directs the output of the job log dataset?
what is the difference between JES3 and JES2?
What do you understand by the term job time – out and how can you overcome that?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What is one line to pass PARM from JCL to COBOL?
Can an individual step be restricted from using all the jobs allowed cpu time?
how to do automated restart when a job abends?
Differentiate between addressing mode and run mode.
how you can access an uncataloged dataset in a JCL?
what is the purpose of coding notify parameter in job statement?
What is the purpose of the dd keylen parameter?
what is SOC4 error?
Can we call instream to catalog and catalog to instream?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?