View previous topic :: View next topic
|
Author |
Message |
Suvendu.test
New User
Joined: 04 Feb 2006 Posts: 4
|
|
|
|
We have a Cobol program. suppose ther is an input file and the file is opened in input mode ,what will be the Disp parameter in JCl.
Similarly if the file is opened in output mode ,what will be the disp parameter?
If it is opened in Extend mode ,the disp parameter in JCL should be ---
If the file is opened in I-O mode ,what will be the disp parameter?
Please can anyone clear my doubt as I am very much confused with it. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Suvendu,
Firstly we need to understand how many SUBPARAMETERS are available for DISP parameters.... and that can be referred from the manuals...
Quote: |
We have a Cobol program. suppose ther is an input file and the file is opened in input mode ,what will be the Disp parameter in JCl. |
If file is opened in INPUT Mode... corresponding DISP parm would be either SHR/OLD.
Quote: |
Similarly if the file is opened in output mode ,what will be the disp parameter? |
Either it should be NEW or MOD/OLD... but it shouldn't be SHR.
Quote: |
If it is opened in Extend mode ,the disp parameter in JCL should be --- |
A file is opened in EXTEND mode, when you want to append the data in the file keeping present data safe. So DISP can be OLD/MOD... but can't be NEW.
Quote: |
If the file is opened in I-O mode ,what will be the disp parameter? |
MOD/OLD
Regards,
Priyesh. |
|
Back to top |
|
|
Suvendu.test
New User
Joined: 04 Feb 2006 Posts: 4
|
|
|
|
Hi Priyesh,
Thanks for your quik reply . |
|
Back to top |
|
|
|