IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to use Disp parameter in jCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Suvendu.test

New User


Joined: 04 Feb 2006
Posts: 4

PostPosted: Wed Feb 15, 2006 10:48 am
Reply with 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.

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Wed Feb 15, 2006 11:52 am
Reply with quote

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
View user's profile Send private message
Suvendu.test

New User


Joined: 04 Feb 2006
Posts: 4

PostPosted: Thu Feb 16, 2006 10:15 am
Reply with quote

Hi Priyesh,

Thanks for your quik reply .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
No new posts Writing the output file name from a p... JCL & VSAM 7
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top