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 / mithun suresh

Hi, try this out

Option 1: Use IEBGENER Utility
//DELJOB JOB ..........
//STEP01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD *
//SYSUT2 DD DSN=USERID.DATASET,DISP=SHR

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List in order the hierarchical levels of jcl?

664


How does jcl specify the job to the operating system?

745


Explain the function of dd disp parameter?

588


What is the function of job statement in jcl?

631


What are the utility programs in jcl?

640






when can a job time-out occur? How to overcome that?

742


What are steplib and joblib? What for they are used?

681


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

932


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

739


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5055


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

914


What are the jcl procedures?

640


What is the purpose of dd * statement in jcl?

793


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

769


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

665