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

Pushpa, I created a PS with FBA and put some recs in and
ran the same above JCL. To me it worked. Have u checked
what error u r getting. Try the below stuff with SORT util.

//STEP01 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=USERID.DATASET,DISP=SHR
//SORTOUT DD DSN=USERID.DATASET,DISP=SHR
//SYSIN DD *
SORT FIELDS=COPY,STOPAFT=0

Is This Answer Correct ?    15 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A dd statement consists of 4 fields. Name them?

932


when does a dataset go uncataloged?

838


what happens in conversion stage in job processing?

730


What is Cataloged Procedures?

715


how can the same proc be re-used and called by many jobs?

912






Matching Logic in Jcl not in cobol.Could any one please answer this question

3671


I need exexution process for JCL programs

1852


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1352


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

753


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1732


Explain the jcl exec statement?

649


what is DSN in JCL and what are the parameters to declare the DSN?

720


What is timing concept in mainframe?

1662


Is automatic restart possible in jcl?

742


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

788