Is your site running JES2 or JES3? That will determine if what you want to do is possible. Since JES3 does allocation at job initiation time, if you are running JES3 you will find that your request cannot be accomplished in one job in JES3. JES2, I understand, does allocation at step initiation time so it may be possible under JES2.
Hi Robert .. Thank you very much for your help .. It finally worked
Initially I had 2 steps
1) 1st one will rename the dataset as *.OLD...
2) 2nd one will use *.OLD dataset as input to the pgm and will produce new dataset with the name before renaming ...
I was doing (1) and (2) in the same step .. It was failing
3)Now I submitted 2 steps separately and it went fine