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 / garry
Try This :
//JOBCARD
//STEP1 EXEC PGM=IEFRBR14
//DD1 DD DSN=FILE1,DISP=(MOD,DELETE,DELETE)
May need to code DCB and SPACE parameter.
//DD2 DD DSN=FILE1,DISP=(NEW,CATLG,CATLG)
MUST need to code DCB and SPACE parameter.
//
Ply respond with YES or NO.
Thanks
Garry
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
whats the diff bw the evaluate also and and?
Is there any command to check wether the ps file is in sorted order?
Are there any set of rules for the names of the steps used in a job?
How to override loadlib?
Explain the job statement in jcl?
which utility is used to sort a file in jcl?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
what are the statements that are not valid to be included in an include statement?
what is use of dsn parameter in dd statement?
How to pass the parameter in parm using linkage section ? (syntax)?
How would you understand error(execution phase)?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?
List the various advantages of using jcl language?
Matching Logic in Jcl not in cobol.Could any one please answer this question