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 / sachin borase
//JOBNAME
//S1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(NEW,CATLG,DELETE)
//S2 EXEC PGM=SORT
//SORTIN DD DSN=FILE1
//SORTOUT DD DSN=FILE2,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
/*
| Is This Answer Correct ? | 0 Yes | 6 No |
Post New Answer View All Answers
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
What are the rules employed while naming the steps in a job?
when does a dataset go uncataloged?
Name a few IBM utility programs, and explain its function.
Explain the function of //jcllib statement?
How jcl work to handle various input output file operations?
How would you understand error(execution phase)?
How to override loadlib?
What is the purpose of dd dummy statement?
what sort card you will use to copy the data from one dataset to another dataset?
For what purpose steplib and joblib are used ?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
whats the diff bw the evaluate also and and?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
what is “Cond= even” and “Cond=only”?