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
A dd statement consists of 4 fields. Name them?
when does a dataset go uncataloged?
what happens in conversion stage in job processing?
What is Cataloged Procedures?
how can the same proc be re-used and called by many jobs?
Matching Logic in Jcl not in cobol.Could any one please answer this question
I need exexution process for JCL programs
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
when can a job time-out occur? How to overcome that?
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.
Explain the jcl exec statement?
what is DSN in JCL and what are the parameters to declare the DSN?
What is timing concept in mainframe?
Is automatic restart possible in jcl?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?