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


Please Help Members By Posting Answers For Below Questions

I need exexution process for JCL programs

1852


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

606


Does jcl support automatic restart?

761


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

939


Explain the function of dd disp parameter?

595






how you will the direct the data to spool using sysout option?

1765


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

777


what is use of dsn parameter in dd statement?

670


Can I send output of job to my remote device careerride123?

668


What is the purpose of dd?

728


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


What is the significance of addrspc parameter in exec statement?

731


how JCL works?

796


List in order the hierarchical levels of jcl?

670


Explain how can values be passed from the job stream to an executable program?

629