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
Is automatic restart possible in jcl? If yes, how?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
Is condition checking possible in jcl? If yes, how?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
What are steplib and joblib?
Explain the function of the steplib dd statement?
How to pass the parameter in parm using linkage section ? (syntax)?
List the different jcl statements that are not permitted in the procedures?
What do you understand by the terms: joblib and steplib?
Suppose I have five jobs to do. But I want to hold one?
Is their any set of rules for dd? Explain.
Is condition checking possible in jcl?
In job processing, what happens in execution stage?
Explain how can return codes be tested before execution of a job step?
which utility is used a dummy utility?