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
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
How would you understand error(execution phase)?
Is condition checking possible in jcl? If yes, how?
What is the use of symbol // in jcl?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
What is the significance of addrspc parameter in exec statement?
when can a job time-out occur? How to overcome that?
in ways data can be passed to a COBOL program from JCL?
Brief description of inline procedure of jcl.
Explain how can an in-stream dataset be terminated?
what is the compile process of cobol program expalin with code
What is the function of //cntl statement?
What does a disposition of (new,catlg,keep) for a dsn mean?
How does the jcl specify the job to os?
How jcl work to handle various input output file operations?