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
 

 

Modifying the size of the data set using REXX

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

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Sun Feb 22, 2009 1:46 pm    Post subject: Modifying the size of the data set using REXX
Reply with quote

Hi

I am trying to write a code in REXX which will modify the primary and secondary size of the PS file. code is getting executed successfuly but data set size is not getting changed.could you please help me out with this .since i m executing huge spufi files about 20000 insert output fie always gets space abend and every time i have to delete the data set and create a new one with more size

Following is my code which i have written by referring to REXX user guide

PULL BASEDS
PULL NEWDS
IF SYSDSN(BASEDS) = 'OK' THEN
DO
X=LISTDSI(BASEDS)
IF X = 0 THEN
CALL ALLC
ELSE
SAY 'RETURN CODE IS' X
END
ELSE
SAY DSNAME 'NOT AVAILABLE'
EXIT

ALLC:
NEWPRIMARY = 5 * SYSPRIMARY
SAY SYSPRIMARY
NEWPRIMARY = 10
"ALLOC DA("BASEDS") MOD SPACE("NEWPRIMARY SYSSECONDS")"

IF RC = 0 THEN
SAY 'SUCESSFULL ALLOCATION'
ELSE
SAY RC 'ERROR ENCOUNTERED'
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: Sun Feb 22, 2009 2:04 pm    Post subject:
Reply with quote

Why not use a large allocation to start with and use the RLSE parameter to release unused space at step completion.

The only way that the secondary space can be altered is by using the different space allocation in the job step that writes to the dataset that pre exists.
Back to top
View user's profile Send private message
mosinjamadar

New User


Joined: 26 Sep 2007
Posts: 42
Location: pune

PostPosted: Sun Feb 22, 2009 2:17 pm    Post subject: Reply to: Modifying the size of the data set using REXX
Reply with quote

Sir, Thanks for reply
but i wanted know is there any way I can handle it using rexx
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: Sun Feb 22, 2009 2:28 pm    Post subject:
Reply with quote

Not unless you delete and redefine the dataset or use the space override in the same step
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
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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