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
What do you understand by the terms: joblib and steplib?
How is the record format of an output dataset specified?
What is the purpose of the dd keylen parameter?
What are the parameter we cannot use in procedure?
What is multithreading in jcl?
Explain the purpose of the dd keylen parameter?
What is use of restart and how to use it?
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.
how you can direct the data to spool using SYSOUT option?
What is the purpose of dd?
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?
Does jcl support automatic restart?
Is their any limit for data sets?
what sort card you will use to copy the data from one dataset to another dataset?
Is condition checking possible in jcl?