When should DISP=MOD is used?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you check if a file is empty using jcl?

816


Is it possible to code instream data in a PROC?

753


Explain how can the attributes of one sms dataset be copied to another dataset?

705


List the different jcl statements that are not permitted in the procedures?

640


what are the various stages of job processing?

741






What parameter directs the output of the job log dataset?

766


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

923


How does jcl act on a cobol code?

659


List in order the hierarchical levels of jcl?

670


How can the disposition of sysout datasets be set for an entire jobstream?

840


What does a disposition of (MOD,DELETE,DELETE) mean ?

668


Where can program checkpoints be stored for use in a restart?

851


When space is allocated for an output dataset, what units can be used?

751


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

947


How can values be passed from the job stream to an executable program?

875