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
 

 

create PDS and member using JCL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mrar_160

New User


Joined: 14 Sep 2005
Posts: 48

PostPosted: Thu Nov 30, 2006 10:21 am    Post subject: create PDS and member using JCL.
Reply with quote

Hi guys..

I made a JCL to create a PDS and 1 member.. My JCL is like this ..

//****
//STEP1 EXEC PGM=IEFBR14
//DXX DD DSN=TSOMJ.ES07TES(MEM1),DISP=(,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(1,1,1)),
// DCB=(LRECL=100,RECFM=FB,BLKSIZE=8000)
//****

When i run this, i got RC0..But when i want to edit dataset TSOMJ.ES07TES, it say "No members in data set".. Why it did not create the MEM1??

One more question,
For ulitities, anybody know what is new utilities in Z/os??Any new from OS/390??
Back to top
View user's profile Send private message

gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Thu Nov 30, 2006 10:53 am    Post subject:
Reply with quote

Are you sure with the return code 0.

I think the problem is with the disp parameter which should be (NEW,CATLG). Check for the directory blocks allocated for the PDS.

Regards,
Gokul
Back to top
View user's profile Send private message
mrar_160

New User


Joined: 14 Sep 2005
Posts: 48

PostPosted: Thu Nov 30, 2006 1:21 pm    Post subject: Re: create PDS and member using JCL.
Reply with quote

yes..
the RC = 0..
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Nov 30, 2006 6:56 pm    Post subject: Re: create PDS and member using JCL.
Reply with quote

mrar_160 wrote:
For ulitities, anybody know what is new utilities in Z/os??Any new from OS/390??


Some enhancements (FTP especially) but I haven't seen any new ones announced.

In order to create a new PDS with a member, you have to actually open the member and write something, even if its an empty record. A better method would be:

Code:

//STEPXXXX EXEC PGM=SORT
//SORTIN   DD *
/*
//SORTOUT  DD DSN=TSOMJ.ES07TES(MEM1),DISP=(,CATLG),
//         UNIT=SYSDA,SPACE=(TRK,(1,1,1))
//SYSOUT   DD SYSOUT=*
//SYSIN    DD *
  OPTION COPY
  OUTREC FIELDS=(100:X)
/*
Back to top
View user's profile Send private message
mrar_160

New User


Joined: 14 Sep 2005
Posts: 48

PostPosted: Wed Dec 06, 2006 8:23 am    Post subject:
Reply with quote

Hi superk..
Tq for reply.. It's work!!..
Tq..
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 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
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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