Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to use Disp parameter in jCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to use Disp parameter in jCL
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: 1452
Location: Chicago, IL

PostPosted: Wed Feb 15, 2006 11:52 am    Post subject: Re: How to use Disp parameter in jCL
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us