Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

When should DISP=MOD is used?

Answers were Sorted based on User's Feedback

When should DISP=MOD is used?..

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

When should DISP=MOD is used?..

Answer / peter

Disp=New tells the system to create a NEW dataset at step
initiation, so that the program can use the newly created
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

When should DISP=MOD is used?..

Answer / nithya

Dataset is already created and new records are appended at the end

Is This Answer Correct ?    4 Yes 0 No

When should DISP=MOD is used?..

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

When should DISP=MOD is used?..

Answer / vinay

disp=mod is used to modify the records in existing datasets

Is This Answer Correct ?    1 Yes 4 No

When should DISP=MOD is used?..

Answer / vamsi


Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More JCL Interview Questions

how to compress the data set

8 Answers   Keane India Ltd,

What is the exact difference between PRTY and DPRTY

2 Answers   iGate,

What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

0 Answers   IBM,

Describe the EXEC statement, its meaning, syntax and keywords?

2 Answers  

There are 5 steps in a Job. How to bypass the first step by making use of only COND Parameter and not using any Restart and IF/THEN/ELSE parameter?

11 Answers   IBM,

Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?

0 Answers  

what if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.

1 Answers  

which parameter is use to declare the name of dataset in dd statement?

0 Answers   IBM,

what is the use of JCL?

0 Answers  

How to release a JOB (from the input queue) held by TYPRUN = HOLD ? and how to see the installation default time after which a JOB will be automatically released ? How to see the list of currently HELD JOBS ?

5 Answers   IBM,

what is force complete

2 Answers   IBM,

The maximum number of in-stream procedure you can code in any JCL is ?

5 Answers