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
 
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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