IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copying PS to a PDS member.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raam2smart

New User


Joined: 31 May 2007
Posts: 19
Location: Chennai

PostPosted: Tue Dec 23, 2008 11:49 am
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Dec 23, 2008 12:03 pm
Reply with quote

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
View user's profile Send private message
raam2smart

New User


Joined: 31 May 2007
Posts: 19
Location: Chennai

PostPosted: Tue Dec 23, 2008 12:17 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Dec 23, 2008 12:35 pm
Reply with quote

Are the input and output DCB parameters a match or not ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Dec 23, 2008 1:04 pm
Reply with quote

If the PDS already exists, you don't need to specify DCB.

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Dec 23, 2008 1:12 pm
Reply with quote

Quote:
We have to create a new member in the PDS right?

You have to, we just do not care icon_cool.gif
Quote:
For this we have to specify the DCB and other parameters right?

wrong, if the PDS exist

if You want to copy a PS to a PDS member if ...... the dcbs are
1) the same, iebgener does not need additional parameters
2) different, iebegenr can do it with additional parameters

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2U130/6.0?SHELF=DGT2BK71&DT=20060626223348
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Dec 23, 2008 4:36 pm
Reply with quote

You can also use the old tried and trusted IEBUPDTE utility....

Garry.
Back to top
View user's profile Send private message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Wed Dec 24, 2008 1:47 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Dec 24, 2008 1:54 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Dec 24, 2008 2:59 pm
Reply with quote

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
View user's profile Send private message
umasankarmf

New User


Joined: 08 Sep 2008
Posts: 43
Location: india

PostPosted: Wed Dec 24, 2008 3:08 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Looking For a PDS Member Without Open... PL/I & Assembler 10
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Library member auto insert option TSO/ISPF 3
Search our Forums:

Back to Top