When should DISP=MOD is used?
Answers were Sorted based on User's Feedback
Answer / guest
DISP=MOD is used to either extend an existing sequential
dataset or to create a dataset if it does not exist. If the
dataset exists, then records are appended to the dataset at
the end of the existing dataset. If the dataset does not
exist, the system treats MOD as if it were NEW, provided
that the volume parameter has not been used. If the volume
parameter is used, the system terminates the job and does
not create the new dataset. MOD can be used to add to a
dataset that extends onto several volumes. Always specify a
disposition of CATLG with MOD for cataloged datasets, even
if they are already cataloged, so that any additional volume
serial numbers will be recorded in the catalog.
| Is This Answer Correct ? | 36 Yes | 5 No |
Answer / 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 |
Answer / nithya
Dataset is already created and new records are appended at the end
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / xyz
disp=old refers to dataset already created.
disp=new refers to dataset to be created at end of this step
disp=mod refers some data contents are added at end of
dataset if
dataset already present or a new dataset is created if it
is not already present.
| Is This Answer Correct ? | 9 Yes | 9 No |
Answer / vinay
disp=mod is used to modify the records in existing datasets
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / vamsi
IT IS USED FOR ONLY EXISTING DATA SETS FOR ABEND DATA(ADDING).
| Is This Answer Correct ? | 4 Yes | 10 No |
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
What is the significance of addrspc parameter in exec statement?
diff bw vsam and normal flat file?
hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)
Can we use two or more SYSPUNCH DD statements in a JCL for multiple unload (SYSREC00 & SYSREC01)..?
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
How can unused space allocation be returned to the system when a dataset is closed?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
A file has dta in S9(09) COMP format. How do I move the data into a character field X(10)?
List in order the hierarchical levels of jcl?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
How can the submitting users racf authority be overridden in a job stream?