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 ? | 8 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 |
How to execute step2,step1, step3 if step1,2,3 are in order
how to put a dependency on job in jcl using opc scheduler?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
How to find out the number of records in a file using JCL
How do you submit a JCL under CICS environment ?
If I defined space as TRK(10,10) for the one file and lrecl = 4K then tell me how many record will vsam file will contain. will it 1,2,3,4,5 or how many,
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?
What is the use of DSNDB07 ?
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
How to execute 300 steps in a Job?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK