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

What is the purpose of dd?

728


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

1009


what is the purpose of coding notify parameter in job statement?

683


What is the purpose of dd * statement in jcl?

812


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7084






can any one plzzzzzz tell the jcl code for creating ps using idcams

10513


How does jcl act on code(if you take a cobol program)?

707


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

704


Explain the jcl exec statement?

647


How to pass data to a program that is coded in an exec statement?

826


Is it possible to code instream data in a PROC?

750


What parameter of the job statement is used to limit the cpu time consumed by the job?

838


What is the function of the dd dcb keyword?

824


when does a dataset go uncataloged?

835


what are JCLLIB and STEPLIB in JCL?

675