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
 

 

Removing selective DD concatenation from JCL Override.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Removing selective DD concatenation from JCL Override.
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

Site Director


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

PostPosted: Sat Mar 15, 2008 11:59 pm    Post subject:
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

Senior Member


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

PostPosted: Sun Mar 16, 2008 3:54 am    Post subject:
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

Site Director


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

PostPosted: Sun Mar 16, 2008 8:29 am    Post subject:
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

Senior Member


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

PostPosted: Sun Mar 16, 2008 12:06 pm    Post subject:
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    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 Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Removing the MODETAB field in a VTAM ... rcwing All Other Mainframe Topics 1 Fri Feb 19, 2016 7:11 pm


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