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


Please Help Members By Posting Answers For Below Questions

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?

619


Brief description of inline procedure of jcl.

687


What dd statement is used to supply the name of a dataset?

779


Does jcl support automatic restart?

761


Explain how can an in-stream dataset be terminated?

703






what is SOC4 error?

740


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

2173


I need exexution process for JCL programs

1852


Differentiate between the joblib and the steplib statements?

859


Explain the job statement in jcl?

653


What do you understand by the term job time – out and how can you overcome that?

606


How do you create a temporary dataset?

664


How does the jcl specify the job to os?

696


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

777


how do you code a null statement?

780