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

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

2533


which utility is used to sort a file in jcl?

852


what is the resolution for sb37 error

8010


what is a jcl?

778


Explain the function of //cntl statement?

751






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

731


What is multithreading in jcl?

1047


Suppose I have five jobs to do. But I want to hold one?

752


What is concatenating?

725


How jcl is used for testing batch programs?

827


which utility is used to run a cobol-db2 program?

917


Define concatenating?

757


when does a dataset go uncataloged?

940


What do you understand by jcl?

716


Explain the function of dd disp parameter?

687