Joined: 20 May 2004 Posts: 97 Topics: 43 Location: hyderabad, India
Posted: Wed Apr 05, 2006 12:06 pm Post subject:
Hi Kolusu,
My requirement is I am using IEBCOPY to copy some PDS's member to some other PDS( which is created run-time).
On some specific scenarios ,I need to override the output PDS name to some DUMMY thing , so that no new PDS gets created after this job is complete.
As you suggested , I am using the following JCL code to achieve that objective , but I am getting return code of 8.
If I execute above JCL , I am getting MAXCC=8 with following message in spool :
Code:
IEB1135I IEBCOPY FMID HDZ11H0 SERVICE LEVEL UA14838 DATED 20041027 DFSMS 01.0
IEB1035I VENV31A COPY01 GO 11:55:49 WED 05 APR 2006 PARM=''
C I=DD1,O=DD21
IEB120I DD21 VALIDATION ERROR
IEB187I NOT A DIRECT ACCESS OR TAPE DATA SET
IEB1030I DDNAME DD1 REFERS TO PDS DATA SET ON VOLUME HCM002 NAMED PICM.CP0
IEB1030I DDNAME DD21 REFERS TO PDS? DATA SET ON VOLUME NAMED NULLFILE
IEB166I NO MEMBERS COPIED TO DATA SET REFERENCED BY DD21
IEB151I JOB HAS TERMINATED WITH ERROR(S)
IEB147I END OF JOB - 8 WAS HIGHEST SEVERITY CODE
My objective is , on specific scenarios I need not create a new PDS , instead I route the OUTPUT PDS DD to DUMMY. _________________ Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Apr 05, 2006 12:26 pm Post subject:
pzmohanty,
IEBCOPY's COPY operator is used to copy a PDS to another PDS and DUMMY is not a Pds. You need to use IEBPTPCH whenever you want to override with DUMMY dataset.
You need to code 2 steps one with IEBCOPY and another IEBPTCH. On the override condition run the IEBPTCH step and in the other case run IEBCOPY.
Another option is to replace the IEBCOPY step with Fileaid which takes cares of both the scenarios.
That is cool stuff Kolusu. Thank you quicky. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
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