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

OVERRIDING DATASET IN PROC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Thu May 26, 2005 2:06 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top