MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Creating bulk datasets(PDS & PS) thru jcl or REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Sukeesh
Beginner


Joined: 11 Feb 2008
Posts: 2
Topics: 1
Location: India(Chennai)

PostPosted: Fri Feb 22, 2008 1:44 am    Post subject: Creating bulk datasets(PDS & PS) thru jcl or REXX Reply with quote

Hi,

I would like to create multiple datasets with different parameters(BLKSIZE, LRECL, etc..) in single JCL or REXX program.

Is it possible?? if so please provide the way to do it.


Thanks & regards,

K.S. Arjun SIngh(Sukeesh)
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Feb 22, 2008 5:44 am    Post subject: Reply with quote

How will you be creating these? ICEGENER, IDCAMS, SORT, SYNCSORT, something else? What is your input? If you are doing a 1-to-1 copy then ICEGENER is the way to go - just create a JCL with as many steps as required. If you are creating many copies of one dataset the the COPY function of ICETOOL is what you want. If you are editing the input dataset o create a different output dataset the eithe ICEGENER or DFSORT.

But...basically, you have given so little information that it is impossible to say. We are not mind readers.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Feb 23, 2008 5:45 am    Post subject: Reply with quote

IEFBR14, REXX using the TSO ALLOCATE command ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Sukeesh
Beginner


Joined: 11 Feb 2008
Posts: 2
Topics: 1
Location: India(Chennai)

PostPosted: Sat Feb 23, 2008 7:22 am    Post subject: Reply with quote

hi,
for example if i want to create below three datasets with there parameters in one jcl using any tool(IEBGENER, ICETOOL, etc) or from rexx. but in single JCL.


sys1.demo.ps FB, LRECL=80, BLKSIZE=8000, DSORG=ps
Sys1.demo2.pds FB, Lrecl=81, BLKSIZE=8100, DSORG=po
.....

If u need more info pls let me know.
thx for ur reply.

Regards,

K.S. Arjun Singh
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Sat Feb 23, 2008 8:27 am    Post subject: Reply with quote

as expat said, just use Rexx to use TSO's ALLOCate statement. Examples abound on the web and in manuals. Usually for bulk allocations like this, you'd either read a list of data sets and attributes from a file and allocate accordingly, or you could allocate data sets like other data sets (LIKE parm on the ALLOC command) but there are as many ways to do it as there are reasons to do it.

If you want to do it through JCL because the attributes are mostly the same, just use unique ddnames on any program. Most people use IEFBR14 since that program does absolutely nothing. It is the JCL interpreter that does the allocation, not the program!! (In fact, you can even specify a program that does not exist - you'll get an abend S806, but the data sets will be allocated Smile )
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group