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

What do you understand by the terms: joblib and steplib?

616


How is the record format of an output dataset specified?

738


What is the purpose of the dd keylen parameter?

712


What are the parameter we cannot use in procedure?

631


What is multithreading in jcl?

930






Explain the purpose of the dd keylen parameter?

663


What is use of restart and how to use it?

757


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1982


how you can direct the data to spool using SYSOUT option?

914


What is the purpose of dd?

720


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?

813


Does jcl support automatic restart?

746


Is their any limit for data sets?

697


what sort card you will use to copy the data from one dataset to another dataset?

719


Is condition checking possible in jcl?

709