View previous topic :: View next topic |
Author |
Message |
Nithisha Beginner
Joined: 27 May 2006 Posts: 23 Topics: 13 Location: Pune
|
Posted: Thu Mar 01, 2007 6:16 am Post subject: Override a DD name from a concatenated Dsn's in a Proc |
|
|
hi
how to nullify the 4th data set which is concatenated With out changing the proc.
thanks in advance.
Nithisha |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Mar 01, 2007 8:01 am Post subject: |
|
|
//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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Mar 01, 2007 8:20 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Mar 01, 2007 8:28 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Mar 01, 2007 8:46 am Post subject: |
|
|
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 |
|
|
dz Beginner
Joined: 02 Apr 2006 Posts: 26 Topics: 0
|
Posted: Thu Mar 01, 2007 10:01 am Post subject: |
|
|
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 |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Mar 01, 2007 10:31 am Post subject: |
|
|
I was wondering the same thing. Sounds like it might be worth testing. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Mar 01, 2007 10:41 am Post subject: |
|
|
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 |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Mar 01, 2007 10:44 am Post subject: |
|
|
Darn - I just ran a test to prove it, too _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
|
|