Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copying PS to a PDS member.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copying PS to a PDS member.
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: 1288
Location: Chennai, India

PostPosted: Tue Dec 23, 2008 12:03 pm    Post subject: Reply to: Copying PS to a PDS member.
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    Post subject: Reply to: Copying PS to a PDS member.
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 23, 2008 12:35 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Dec 23, 2008 1:04 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Tue Dec 23, 2008 1:12 pm    Post subject: Reply to: Copying PS to a PDS member.
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

http://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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Tue Dec 23, 2008 4:36 pm    Post subject:
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Dec 24, 2008 1:54 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Wed Dec 24, 2008 2:59 pm    Post subject: Reply to: Copying PS to a PDS member.
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us