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 / bill cecchini
Use the dataset itself to get the required DCB attributes.
//STEP01 EXEC PGM=IEBGENER
//SYSUT1 DD DUMMY,DCB=USERID.DATASET
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How can the disposition of sysout datasets be set for an entire jobstream?
How do you overcome this limitation ?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
Which dd parameters are required?
how JCL works?
what happens in conversion stage in job processing?
Give the syntax of job specifying jcl statement.
How can an in-stream dataset be terminated?
Explain in DD statement what is the use of DCB parameter?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
what is use of disp parameter in dd statement?
How does jcl specify the job to the operating system?
How jcl work to handle various input output file operations?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?