WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE)

Answer Posted / wairagade

Sometimes in job, datasets needs to be deleted as per
application requirements but we are not sure that the
dataset is been cataloged or not . so the first step will
be using IEFBR14 utility mentioned those datasets which
needs to be deleted with DISP mentioned in Q . If the
dataset is not cataloged then system will cataloged it
first and delete it . It will avoid JCL error. Your
thoughts on this!!

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

711


Explain dd statement in jcl?

638


How do you access an uncatalogued dataset in a jcl?

724


How does jcl specify the job to the operating system?

745


Does jcl support automatic restart?

759






What is condition checking in jcl? Is this possible?

619


How to override loadlib?

1417


is there any way to execute more than one proc in the same exec statement at the same time..?

2103


What is the function of //jcllib statement?

797


WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375

1033


How can unused space allocation be returned to the system when a dataset is closed?

802


Can an individual step be restricted from using all the jobs allowed cpu time?

1005


how to run batch program without jcl?

10064


Explain the function of job statement in jcl?

644


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

919