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

REXX is failing in allocating a Huge File


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rahulgarg14

New User


Joined: 16 Apr 2007
Posts: 10
Location: gurgaon - india

PostPosted: Thu Jan 24, 2013 4:00 pm
Reply with quote

Hi,

I am using a REXX tool creates member from input file as given below,

Let input file have following records,
. add Agent ID1
Rec1
Rec2
Rec3
.add Agent ID 2
Rec1
Rec2
.add Agent ID 3
Rec1
Rec2
Rec3
Rec4

Then it will create 3 output files as follows,
Outfile1.Agent ID1 --> will contain 3 records
Outfile2.Agent ID2 --> will contain 2 records
Outfile3.Agent ID3 --> will contain 4 records

i.e. agents IDs are suffixed in the file name.
Functioning of REXX tool is,
a) REXX tool allocates the file. Different file is allocated for different agent ID.
b) queue up 2000 record in stack
c) write the records in output file till EOF

Problem is that one of the agent ID contain lot of records around 4 Million. in that case REXX tool fails with Space abend. It is not able to allocate such huge file.

When I tested the tool in test environment It was working fine. but in production it fails.

TSO ALLOCATE statement used to allocate file is,
ALLOCATE DS('"PDSNM"') F(OUTMEM) MOD SPACE(200 100) CYLINDERS" DSORG("PS")" "LRECL("LRECL") BLOCK("BLK") RECFM("F B") DATAC("SCPHUGE") UNIT(SYSDA)"

can anybody please suggest work around for this.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jan 24, 2013 4:08 pm
Reply with quote

What are your LRECL and BLK values?
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Thu Jan 24, 2013 5:30 pm
Reply with quote

You may be able to change UNIT(SYSDA) to UNIT(SYSDA,2), or UNIT(SYSDA,3), etc. Not really sure.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Thu Jan 24, 2013 9:13 pm
Reply with quote

Note that ALLOC is a TSO command, not a Rexx statement. It would be helpful, Rahulgarg, if you told us just what abend (B37? D37? E37?) is occurring.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Jan 24, 2013 9:48 pm
Reply with quote

Quote:
It is not able to allocate such huge file.


I am pretty sure it is allocating the size that you requested, but you fill it up with too many records.

Part of the failure is that you do not know how to compute your space needs. How did you come up with SPACE(200 100) CYLINDERS?

Also, it looks like some quotes are missing:
Code:
ALLOCATE DS('"PDSNM"') F(OUTMEM) MOD SPACE(200 100) CYLINDERS" DSORG("PS")" "LRECL("LRECL") BLOCK("BLK") RECFM("F B") DATAC("SCPHUGE") UNIT(SYSDA)"


Are 'PS' and 'F' and 'B' really variables? Does your SYSDA pool have enough free space?
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: Thu Jan 24, 2013 10:35 pm
Reply with quote

Hello,

Suggest you consider an implementation that does Not use REXX. REXX has introduced many performance issues when large volumes of data are used.

When testing there should have been full-bolume testing done - and should be in the future for this or any other "things". One of the causes of "worked in test, failed in production" is insufficient testing - which includes full-volume testing.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top