Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts How do I create a mainframe monitorin... anjali.bisht All Other Mainframe Topics 4 Fri Sep 01, 2017 2:20 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts How do you create Eclipse based dialogs jasorn IBM Tools 0 Thu Aug 03, 2017 5:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us