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
What do you understand by the term job time – out and how can you overcome that?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
what is use of dsn parameter in dd statement?
how can you check if a file is empty using jcl?
How to submit jcl through a cobol program?
Explain the function of the steplib dd statement?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
when does a dataset go uncataloged?
Does jcl support automatic restart?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What is the syntax of JCL statement?
what are JCLLIB and STEPLIB in JCL?
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
Matching Logic in Jcl not in cobol.Could any one please answer this question
What are the rules employed while naming the steps in a job?