MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Override a DD name from a concatenated Dsn's in a Proc

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Nithisha
Beginner


Joined: 27 May 2006
Posts: 23
Topics: 13
Location: Pune

PostPosted: Thu Mar 01, 2007 6:16 am    Post subject: Override a DD name from a concatenated Dsn's in a Proc Reply with quote

hi



how to nullify the 4th data set which is concatenated With out changing the proc.

thanks in advance.

Nithisha
Back to top
View user's profile Send private message AIM Address
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Mar 01, 2007 8:01 am    Post subject: Reply with quote

//STEP.DDNAME DD
// DD
// DD
// DD DUMMY

If you have a fifth then you have to put it int he fourth position (instead of DUMMY) and then DUMMY the fifth, etc etc for 6th 7th etc

It's probably all in the manual but is you cannot be bothered to look then why should I - so you will just have to hope that what I put is correct
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Mar 01, 2007 8:20 am    Post subject: Reply with quote

Nic Clouston,

You are right about the syntax. However once you coded dummy the system will not read the 5th ,6th,... dsn's any more

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Mar 01, 2007 8:28 am    Post subject: Reply with quote

Which is why I said you have to replace the DUMMY with the 5th DSN etc and DUMMY the last i.e. shift everything up - but not so succinctly - but that is what the manual is for - I believe there is an example in there but I have not read that part of the manual for 20 odd years!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Mar 01, 2007 8:46 am    Post subject: Reply with quote

However, I have just done a quick trawl through the JCL Reference and User Guide doing a search on DUMMY and came up with zero examples of dummying a concatenation - if this is the case then this is a shortcoming in the manuals. So the answer is:
If there are 4 datasets in your concatenation then this works to dummy the 4th:
Code:
//step.ddname dd
//      dd
//      dd
//      dd dummy

If there are 5:
Code:
//step.ddname dd
//    dd
//    dd
//    dd dsn=5th dataset details
//    dd dummy

and so on.
Back to top
View user's profile Send private message
dz
Beginner


Joined: 02 Apr 2006
Posts: 26
Topics: 0

PostPosted: Thu Mar 01, 2007 10:01 am    Post subject: Reply with quote

Would coding DSN=NULLFILE for any of targeted DDs allow to essentially DUMMY
out the DD AND allow any subsequent DDs to be processed?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Mar 01, 2007 10:31 am    Post subject: Reply with quote

I was wondering the same thing. Sounds like it might be worth testing.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Mar 01, 2007 10:41 am    Post subject: Reply with quote

dz wrote:
Would coding DSN=NULLFILE for any of targeted DDs allow to essentially DUMMY
out the DD AND allow any subsequent DDs to be processed?


NO coding DSN=NULLFILE is same as coding DD DUMMY. All file after DD dummy will be ignored.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Mar 01, 2007 10:44 am    Post subject: Reply with quote

Darn - I just ran a test to prove it, too Exclamation
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group