Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
I have 2 steps. First step has ddname DD1. Second step has ddname DD2. DD1 has 5 files concatenated. Now I want DD2 to be exactly same as DD1. ie. all concatenated files should also be available in DD2.
How do I do that?
Joined: 20 Feb 2009 Posts: 108 Location: Kansas City
You could try using the *.ddname syntax that refers to previous DD in a step (see page about 12-93 in the MVS JCL Reference). I don't know how this treats concatenated DDs though; it may not work or give erratic results.
I don't recommend using esoteric JCL features like this; because if you ever run a 3rd party tool on your JCL it may not be supported (I know my JCL parser doesn't support it).