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
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?
Explain dd statement in jcl?
How do you access an uncatalogued dataset in a jcl?
How does jcl specify the job to the operating system?
Does jcl support automatic restart?
What is condition checking in jcl? Is this possible?
How to override loadlib?
is there any way to execute more than one proc in the same exec statement at the same time..?
What is the function of //jcllib statement?
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
How can unused space allocation be returned to the system when a dataset is closed?
Can an individual step be restricted from using all the jobs allowed cpu time?
how to run batch program without jcl?
Explain the function of job statement in jcl?
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