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 ?
Answer / Wazid Ali Ansari
When DISP=MOD is used in the JCL and the COBOL program opens a file in OUTPUT mode, the existing data in the dataset will be overwritten or lost as this option means that the dataset will be destroyed if it already exists.nnOn the other hand, when DISP=SHR is used and the COBOL program opens a file in EXTEND mode, the dataset will be extended to accommodate new data, preserving any existing data within it.
| Is This Answer Correct ? | 0 Yes | 0 No |
i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl
how do u send return code from cobol to jcl ?
What will happen when we try to pass data from JCL to COBOL using PARM parameter without declaring the length field in Linkage Section?
How do you submit JCL via a Cobol program?
wht is step lib n job lib ? where can we code joblib n steplib ?
How are datasets concatenated?
How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.
Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.
Hi, can we call catalog( say myproc } proc n times in jcl if so how please explain Thanks in advance
wht do u mean by notify parameter, how can u give acess to multiple users ?
wht r different types of sort fields in jcl ?
i have a string of 80 chars i want to replace 4th char with "a"?