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 program opens the file in EXTEND mode. What happens ?

Answer Posted / mohamed khan

Records will be written to end of file (append) when a
WRITE is done in both cases.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why block size is multiple of lrecl in jcl?

915


Explain the hierarchy levels in jcl?

1120


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

846


How can the submitting users racf authority be overridden in a job stream?

758


what are the various stages of job processing?

742






How to do automated restart when a job abend?

791


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1357


What are the difference between jcl and jes?

1050


Explain in DD statement what is the use of DCB parameter?

656


Matching Logic in Jcl not in cobol.Could any one please answer this question

3675


What is the maximum length of a single line of jcl?

831


what is the compile process of cobol program expalin with code

2005


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1738


How to execute 2nd and 4th steps among 5 steps in jcl proc?

750


What is the function of the dd mgmtclas keyword in sms datasets?

743