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

Automatically generate no. of members in a pds using jc


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

New User


Joined: 31 Jan 2008
Posts: 15
Location: gurgaon

PostPosted: Wed Apr 09, 2008 9:29 am
Reply with quote

hi all,

can we automatically generate no. of members in a pds using jcl....

regards,
pritanshu
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Apr 09, 2008 11:14 am
Reply with quote

Hi,
try this link http://ibmmainframes.com/viewtopic.php?t=6192&highlight=members+count+pds


Gerry
Back to top
View user's profile Send private message
pritanshu

New User


Joined: 31 Jan 2008
Posts: 15
Location: gurgaon

PostPosted: Wed Apr 09, 2008 11:33 am
Reply with quote

hi gerry,

i need to split a ps into 50 members of one pds i dont need to count this
i m asking is thr any way to generate no. of members in a pds rather than writing like this what i m doin previously:

//STEP01 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DISP=SHR,DSN=TSUCJEI.NDB.COBBAT(TESTOUT)
//SYSUT2 DD DISP=SHR,DSN=TSUCJEI.NDB.SPLIT.OUT
//SYSIN DD *
GENERATE MAXNAME=5,MAXGPS=4
MEMBER NAME=PART1
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=PART2
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=PART3
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=PART4
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=PART5
/*
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 09, 2008 11:52 am
Reply with quote

Hello,

Your requirement is most unclear. Keep in mind that your question is comletely to you, but it may not be to those who read it.

Quote:
i need to split a ps into 50 members of one pds i dont need to count this
What is this telling us?

Quote:
i m asking is thr any way to generate no. of members in a pds rather than writing like this what i m doin previously
What do you want to generate?
Back to top
View user's profile Send private message
pritanshu

New User


Joined: 31 Jan 2008
Posts: 15
Location: gurgaon

PostPosted: Fri Apr 11, 2008 1:23 pm
Reply with quote

hi all ,
i have done this by using IEBGENER........
//SYSIN DD *
GENERATE MAXNAME=63,MAXGPS=62
MEMBER NAME=R3301R01
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=R3301R02
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=R3301R03
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=R3301R04
RECORD IDENT=(6,'END-OF',30)
MEMBER NAME=R3301R05
RECORD IDENT=(6,'END-OF',30)
and so on till 63 members
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Apr 11, 2008 2:46 pm
Reply with quote

Splitting a PS into x PDS members,

Call me a cynic - but HOMEWORK sort of springs to mind here icon_wink.gif
Back to top
View user's profile Send private message
pritanshu

New User


Joined: 31 Jan 2008
Posts: 15
Location: gurgaon

PostPosted: Fri Apr 11, 2008 2:51 pm
Reply with quote

ya sure
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 Generate random number from range of ... COBOL Programming 3
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts REXX editmacro to compare two members... CLIST & REXX 7
Search our Forums:

Back to Top