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

Removing selective DD concatenation from JCL Override.


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

New User


Joined: 13 Mar 2008
Posts: 2
Location: Bangalore, India

PostPosted: Sat Mar 15, 2008 11:31 pm
Reply with quote

A step in a catalogued proc has concatenated data sets. For example :

PROC

//STEP1 EXEC PGM=MYPGM
//INDD DD DSN=HLQ.1.2.3
// DD DSN=HLQ.1.2.4
// DD DSN=HLQ.1.2.5
// DD DSN=HLQ.EXCLUDE.THIS

A JCL is executing this PROC. The requirement is Override the INDD in the proc from JCL, such that only the last DSN (HLQ.EXCLUDE.THIS) is removed from the concatenation. The solution is NOT to entirely override the INDD and code the first 3 DSN concatenations inside JCL itself. Is there a way to selectively omit any of the DSNs in a concatenation? Thanks for the help.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Mar 15, 2008 11:59 pm
Reply with quote

Hello,

Quote:
The solution is NOT to entirely override the INDD and code the first 3 DSN concatenations inside JCL itself. Is there a way to selectively omit any of the DSNs in a concatenation?
Is there some business reason to NOT use the complete override?

I know of no way to "override" the nth dd statement in a concatenation.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Mar 16, 2008 3:54 am
Reply with quote

Hi,

Try this
Code:

//STEP1 EXEC PGM=MYPGM
//INDD DD
//     DD
//     DD
//     DD DUMMY
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Mar 16, 2008 8:29 am
Reply with quote

Hello,

If that meets TS requirement, cool.

Quote:
Is there a way to selectively omit any of the DSNs in a concatenation?
I (mis?)read this as a different requirement.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Sun Mar 16, 2008 12:06 pm
Reply with quote

dick scherrer wrote:
I (mis?)read this as a different requirement.
Hi Dick,

Perhaps you didn't, TS sentences says something different than what s/he has shown in example. If s/he needs something like
Code:
//STEP1 EXEC PGM=MYPGM
//INDD DD
//     DD
//     DD
//     DD DUMMY
//     DD 
then this is not possible, as soon as first DUMMY is encounterd all the following DDs will be treated as DUMMY (perhaps this is what You thought).
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 Removing date values lines/records fr... SYNCSORT 2
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts Group selective VB records - Trailer ... DFSORT/ICETOOL 16
No new posts Removing Hyphens and Dots using Syncsort SYNCSORT 8
Search our Forums:

Back to Top