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

Is it possible to left uncode disp? If yes, how?

708


What is the function of a dd statement?

709


What is the syntax of JCL statement?

697


What is the purpose of dd * statement in jcl?

812


What is the function of //cntl statement?

831






How do you overcome this limitation ?

698


Explain how can the attributes of one sms dataset be copied to another dataset?

706


what is DD statement is used in JCL?

683


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

1765


How can return codes be tested before execution of a job step?

925


Explain the purpose of dd * statement in jcl?

643


What is catelog procedure and how many catelog procedure to use in one job?

7459


Differentiate between addressing mode and run mode.

615


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1933


How does jcl specify the job to the operating system?

753