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 around 4000 PS datasets using RExx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
babuprashad
Warnings : 1

New User


Joined: 09 Aug 2007
Posts: 15
Location: mysore

PostPosted: Fri Oct 22, 2010 4:40 pm    Post subject: Create around 4000 PS datasets using RExx
Reply with quote

Hi,
Every month we would be having a testing requirement that requires us to create about 4000+ ps files. I wanted to automate it using a Rexx code and create the datasets. I have created the below rexx code that creates the datasets. But I am not able to create more than 253 datasets when i submit the rexx code from a jcl.
Do we have a restriction for the number of datasets that can be created from rexx code.

RExx Code :
Code:
/* REXX - TO CREATE DATASETS */
 DSNAME = 'XXXMF01.TESTFILE.PS'

DO I = 1 TO 4000
     DS1 = DSNAME || I
    SAY DS1
    ADDRESS TSO "ALLOC DA('"DS1"') LIKE('XXXMF01.BABU.PS3')"
END

EXIT
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: Fri Oct 22, 2010 4:49 pm    Post subject:
Reply with quote

You need to allocate the dataset with a given DD name, and then after it is created, FREE the DD name.

All within the same loop.

Why do you need to preallocate, why isn't this done within the jobs that run ?
Back to top
View user's profile Send private message
babuprashad
Warnings : 1

New User


Joined: 09 Aug 2007
Posts: 15
Location: mysore

PostPosted: Fri Oct 22, 2010 5:38 pm    Post subject: Reply to: Create around 4000 PS datasets using RExx
Reply with quote

It worked......I am able to create the datasets......actually we were working on a tool that could look for all the JCL datasets and check if it is already present if not present create them.....this part of the tool had an issue while creating more than 4000 ps......now...it is working fine.... I changed it as below :

Code:
DO I = 1 TO 600
     DS1 = DSNAME || I
    SAY DS1
ADDRESS TSO "ALLOC DDNAME(DD1) DA('"DS1"') LIKE('TPGMF01.BABU.PS3')"
                "FREE DDNAME(DD1)"
 END
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1746
Location: Bloomington, IL

PostPosted: Fri Oct 22, 2010 10:56 pm    Post subject:
Reply with quote

And what is anticipated when the jobs that allocate these data sets with DISP=NEW are run?
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 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