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
 
OVERRIDING DATASET IN PROC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Thu May 26, 2005 9:53 am    Post subject: OVERRIDING DATASET IN PROC
Reply with quote

Hi,
I am calling a proc through JCL. In that proc there is a sort step which contains 10 datasets as input. My requirement is to override the last two datasets. That is no 9 & 10. How i can i code the override in JCL??
Back to top
View user's profile Send private message

avalanches

New User


Joined: 10 May 2005
Posts: 28

PostPosted: Thu May 26, 2005 12:50 pm    Post subject:
Reply with quote

Hi,

To override only the last 2 files, you have got to code the original 8 datasets in your override then you have to give the 2 files you wanna override.

Correct me if im wrong.
Back to top
View user's profile Send private message
Deepa.m
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Thu May 26, 2005 2:06 pm    Post subject:
Reply with quote

yes what avalaches says is right. We have to give all the 10 datasets again in the JCL as

procstepname.ddname dd dsn=...........(input dataset)
Back to top
View user's profile Send private message
SteveConway

New User


Joined: 26 May 2005
Posts: 28
Location: Northern VA, USA

PostPosted: Thu May 26, 2005 5:55 pm    Post subject: Re: OVERRIDING DATASET IN PROC
Reply with quote

You don't need to re-enter the first 8 DSNs, just put in a placeholder DD for them.
Remember that anything not overridden will be taken from the proc, which allows us to only change what we need to, like this:
Code:

//INPUTDSN   DD
//                  DD
//                  DD
//                  DD
//                  DD
//                  DD
//                  DD
//                  DD
//                  DD DSN=OVERRIDE.ONE
//                  DD DSN=OVERRIDE.TWO


Cheers,,,Steve
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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