When should DISP=MOD is used?

Answer Posted / peter

Disp=New tells the system to create a NEW dataset at step
initiation, so that the program can use the newly created
dataset.
The dataset is NOT created at the end of the job-step, "step
termination", but the system looks at the second positional
parameter in the DISP=(NEW,xxx) whether the dataset should
be kept or not!!

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of dd name parameter with a 2 part structure; audit.report?

898


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

802


Explain the function of the dd dcb keyword?

706


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

747


What do you understand by jcl?

627






How to do automated restart when a job abend?

791


What do you understand by the term job time – out and how can you overcome that?

603


What is the function of the dd dcb keyword?

824


How to submit jcl through a cobol program?

679


What is use of restart and how to use it?

769


Is it possible to code instream data in a PROC?

751


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1986


What parameters can be used to limit the number of records written to a sysout dataset?

750


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

7085


i want to store 20 digits . how will u do it in cobol ?

860