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

EXECIO error. Unable to obtain storage.


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

New User


Joined: 06 May 2008
Posts: 96
Location: Delhi

PostPosted: Tue Mar 06, 2012 10:17 am
Reply with quote

I am getting Error while running below code. Not sure what more changes I need to do in this.

Code:
   
"EXECIO * DISKR MPRIN (STEM TEMPVAR. FINIS"                     
CURRENT=1                                                               
HEAP=1100                                                               
RCODE=0;                                                               
DO UNTIL RCODE <> 0                                                     
  "EXECIO "HEAP" DISKR MPRIN "CURRENT" (STEM TEMPVAR. FINIS"             
  RCODE=RC                                                               
  DO I =1 TO TEMPVAR.0                                                   
    IF SUBSTR(TEMPVAR.I,20,10) = "         " THEN                         
      DO                                                                 
        PUSH TEMPVAR.I                                                     
        "EXECIO 1 DISKW MPROUT"                                             
      END                                                                 
  END                                                           
CURRENT=CURRENT+HEAP;                                         
SAY HEAP                                                       
"EXECIO * DISKW MPROUT (STEM OUT. FINIS"                       
END                                               
EXIT 0         



Code:

 EXECIO error. Unable to obtain storage.                                       
 EXECIO error. Unable to obtain storage.                                       
 Storage not available.                                                         
     20 +++     PUSH TEMPVAR.I                                                 
 Error running FILE7, line 20: Failure in system service                       
 ***                                                                           
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Mar 06, 2012 10:23 am
Reply with quote

Hi,

see link ibmmainframes.com/viewtopic.php?t=54505&highlight=storage+rexx


Gerry
Back to top
View user's profile Send private message
scorp_rahul23

New User


Joined: 06 May 2008
Posts: 96
Location: Delhi

PostPosted: Tue Mar 06, 2012 11:29 am
Reply with quote

Code:

/*** REXX */                                                       "               
DO WHILE (RETURN_CODE ¬= EOFFLAG)                                 
   "EXECIO 1 DISKR OLD"                                           
   RETURN_CODE = RC                                               
   IF RETURN_CODE = 0 THEN                                         
      DO                                                           
        PARSE PULL RECORD                                         
            QUEUE RECORD;                                         
            IF SUBSTR(RECORD,30,10) = "          " THEN           
              "EXECIO 1 DISKW MPROUT";                             
              SAY "WRITTEN"                                       
      END;                                                         
END;                                                               



I changed to this but still there is issue with this logic. Not getting that
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Mar 06, 2012 12:14 pm
Reply with quote

How many records in your input file? As the posts in the link say - do not process large files via rexx. If you are just doing a dataset copy then use a dataset copy utility - IEBGENER or your sort product.

You do not need to read onto the heap/stack. Just read into a record:
Code:

"EXECIO 1 DISKW INFILE(input_record"

This will create a variable called INPUT_RECORD1
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 06, 2012 1:14 pm
Reply with quote

From what you have coded above, a simple sort step would be far more efficient
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top