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
How jcl is used for testing batch programs?
What is the motivation behind coding class parameter in job statement?
A dd statement consists of 4 fields. Name them?
Describe the various parameters utilized in the creation of a gdg?
How to pass data to a program that is coded in an exec statement?
how to do automated restart when a job abends?
in ways data can be passed to a COBOL program from JCL?
Explain the function of a dd statement?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
What are the utility programs in jcl?
Explain the function of dd disp parameter?
Explain how can a jobs execution priority be modified?
List the different jcl statements that are not permitted in the procedures?
What is Cataloged Procedures?
What is the purpose of dd dummy statement?