Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us