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 is the function of the steplib dd statement?
a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file
Explain how can the disposition of sysout datasets be set for an entire jobstream?
What is catelog procedure and how many catelog procedure to use in one job?
what happens when time=0 is given in jcl code. what happens when blksize=0 is given in jcl code. what is symbolic and overriding parameters and a example program.
How to get the last but one duplicate record of the file using Sort?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
Explain about File Tailoring
i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the 6th step & 5th step output is used as input in the 7th step. How they are refered as in the 6th & 7th steps? If the job abends in 6th step then how the 5th step output is refered in 7th step?
What are SD37, SB37, SE37 abends?
can i sort packed decimal if i can tell the syntax
Name some of the JCL statements that are not allowed in procs.?