View previous topic :: View next topic
|
Author |
Message |
raam2smart
New User
Joined: 31 May 2007 Posts: 19 Location: Chennai
|
|
|
|
Hi,
I want a JCL which copies a PS file into a PDS member. In this case the PDS is already existing and the member should be newly created.
Let me know for any questions.
Thanks,
Raam |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Hi,
You can use IEBGENER for the same.
Code: |
//STEP EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=MY.PS.FILE
//SYSUT2 DD DISP=SHR,DSN=MY.PDS(MEMBER)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
|
|
|
Back to top |
|
|
raam2smart
New User
Joined: 31 May 2007 Posts: 19 Location: Chennai
|
|
|
|
We have to create a new member in the PDS right? For this we have to specify the DCB and other parameters right? I have already tried this option but it gave me a return code of 12. It gave me the following error.
DATA SET UTILITY - GENERATE
IEB311I CONFLICTING DCB PARAMETERS |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Are the input and output DCB parameters a match or not ? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
If the PDS already exists, you don't need to specify DCB.
O. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
You can also use the old tried and trusted IEBUPDTE utility....
Garry. |
|
Back to top |
|
|
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Hi Aaru,
In your jcl, small correction. You have to mension DISP parameter also otherwise you will get JCL error.
//STEP EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=MY.PS.FILE,DISP=SHR
//SYSUT2 DD DISP=SHR,DSN=MY.PDS(MEMBER),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
If I am wrong please let me know..............! |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
umasankar,
If you look at Aaru's JCL you will see the DISP=SHR is after the DD . You have DISP=SHR twice in your post. You'll get the JCL error.
Garry. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Uma,
Quote: |
Hi Aaru,
In your jcl, small correction. You have to mension DISP parameter also otherwise you will get JCL error.
|
Submit the JCl and see as to what happens. |
|
Back to top |
|
|
umasankarmf
New User
Joined: 08 Sep 2008 Posts: 43 Location: india
|
|
|
|
Hi Aaru,
Sorry for that. I used to code disp parameter in the last. Thats is the reason I made mistake. I am busy with other work thats why I didnt observe that one. Your JCl is correct. I tested previously.
Thanks to Garry. |
|
Back to top |
|
|
|