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 / sachin borase
//JOBNAME
//S1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(NEW,CATLG,DELETE)
//S2 EXEC PGM=SORT
//SORTIN DD DSN=FILE1
//SORTOUT DD DSN=FILE2,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
/*
Is This Answer Correct ? | 0 Yes | 6 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?
Brief description of inline procedure of jcl.
What dd statement is used to supply the name of a dataset?
Does jcl support automatic restart?
Explain how can an in-stream dataset be terminated?
what is SOC4 error?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
I need exexution process for JCL programs
Differentiate between the joblib and the steplib statements?
Explain the job statement in jcl?
What do you understand by the term job time – out and how can you overcome that?
How do you create a temporary dataset?
How does the jcl specify the job to os?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
how do you code a null statement?