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


Please Help Members By Posting Answers For Below Questions

whats the diff bw the evaluate also and and?

1843


Is there any command to check wether the ps file is in sorted order?

2421


Are there any set of rules for the names of the steps used in a job?

625


How to override loadlib?

1410


Explain the job statement in jcl?

638






which utility is used to sort a file in jcl?

740


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?

2214


what are the statements that are not valid to be included in an include statement?

769


what is use of dsn parameter in dd statement?

662


How to pass the parameter in parm using linkage section ? (syntax)?

643


How would you understand error(execution phase)?

617


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1795


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?

1801


List the various advantages of using jcl language?

841


Matching Logic in Jcl not in cobol.Could any one please answer this question

3667