REXX isn't the problem.  Your coding technique is.
There's no limit to the size of file you can read and process using REXX, 
--provided-- that you read and process only one record (or at most only a few 
records) at a time, like 'normal' program would.
For example:
        EXECIO 1 DISKR MYFILE
        IF RC <> 0 THEN DO
             ....whatever your end of input file logic needs to be....
             END
        PARSE PULL BUFFER
        (...BUFFER now contains the record you just read from MYFILE...)
              ...etc...

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
ibmmain
Sent: Tuesday, December 14, 2021 4:27 PM
To: [email protected]
Subject: EAGREX0500E Error 5 . Machine storage exhausted or request exceeds 
limit in REXX

Hi all&nbsp;


&nbsp;We want to handle a big file (about 5,000,000 records in it) by REXX. We 
also compile the Rexx PGM by REXXCOMP&nbsp;


----------------------------------------------------




//COMPILE EXEC PGM=REXXCOMP,PARM='ALT SL COND TRACE'
//SYSIN DD DSN=yourlib.SYSEXEC(REXXIN),DISP=SHR
//SYSCEXEC DD DSN=yourlib.SYSEXEC(REXXOUT),DISP=SHR&nbsp;
-------------------------------------------------------------------
&nbsp;After we submitted the JCL using the REXXOUT with REGION=0M, We got the 
following message:


EAGREX0500E Error 5 . Machine storage exhausted or request exceeds the limit.


Our questions:
1 Could REXX handle more than 5,000,000 records files?
2 Is there any way to solve this issue?'


Any suggestions would be greatly appreciated!



Thanks a lot!


Best Regards,


Jason Cai


&nbsp;

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to