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
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

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

IT IS USED FOR ONLY EXISTING DATA SETS FOR ABEND DATA(ADDING).

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More JCL Interview Questions

how to purge 50 initiators continuously?? console commands??

4 Answers   IBM, ups,


Explain the function of a dd statement?

0 Answers  


how to run JCL thru COBOL.

1 Answers   Patni,


What is model dataset label(Model DSCB)?

1 Answers  


what are JCLLIB and STEPLIB in JCL?

0 Answers  






My JCL have five steps & I created new versions of GDG in first step through fourth step & fifth step I was refered Step one GDG version. My JCL got abend at 4th step and how I can restart my JCL Please let me know the answers. //STEP1 EXEC GDG1(+1) DISP=(NEW) //STEP2 EXEC GDG1(+2) DISP=(NEW) //STEP3 EXEC GDG1(+3) DISP=(NEW) //STEP4 EXEC GDG1(+4) DISP=(NEW) //STEP5 EXEC GDG1(+1) DISP=(OLD)

11 Answers   HCL, IBM, L&T, TCS,


in catalog procedure i have step1 dd dsn=filea dd dsn=fileb dd dsn=filec ur concatenaning all the files. but i need to override fileb with file 2 ? can anyone give the ans pls for ths

1 Answers   DELL,


What are the 2 types of parameters in dd statement?

0 Answers  


how to count the number of members in pds?

2 Answers  


what is instream data

2 Answers   EDS,


can we write a proc with in a proc

4 Answers   IBM,


db2 maintains information about the data... a.in tables. b.in a set of tables known as db2 catalog. c.in db2 database. d.none of the above. 1 What is the maximum number of tables that can be stored on a Partitioned Table Space ? 1 what is contained in the DB2 node lock file? A) data base names B) data base users names C) license keys D) server names Accenture 5 Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code? 6 When you are working with the project after coding what will u do? Like what type of documents u will prepare? How will u do testing? 2 how to delete perticular row from table for ex. how you will delete 3rd row from table please answer THANKS IN ADVANCE IBM 7 max number of columns in a db2 table? 6 What is package versioning? Please give an example. 1 What is the picture clause of the null indicator variable? 6 How do you filter out the rows retrieved from a Db2 table ? 1 What is DB2 (IBM Database 2)? 3 Can any one tell me about Restart logic in DB2.

2 Answers   Cap Gemini,


Categories