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
 

 

Handling a string more than 250 characters in REXX

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

New User


Joined: 18 Feb 2014
Posts: 9
Location: India

PostPosted: Fri Nov 07, 2014 11:12 am    Post subject: Handling a string more than 250 characters in REXX
Reply with quote

Maximum number a characters that can be stored in a variable in REXX is 250. But if I want to read a record which has a length more than 250 characters and process it in my REXX program, the variable will not be able to hold it.

Is there any way to handle records of more than 250 characters in REXX?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Fri Nov 07, 2014 12:09 pm    Post subject: Reply to: Handling a string more than 250 characters in REXX
Reply with quote

Quote:
Maximum number a characters that can be stored in a variable in REXX is 250.


NO!

250 is the maximum length of the NAME of the variable ..

it should be very simple to read the manual or run a little REXX to find out by brute force

Code:
/* rexx*/

numeric digits 12

s = "A"

do    i = 1 to 64
   s = s || s
   say right(i,2) length(s)
end

exit


I do not have the system up right now ...
but using object rexx on my MAC the string length went up ( with a reasonable performance ) to 2**32


after that the rexx seemed to hang and I interrupted it
Back to top
View user's profile Send private message
Arunkumar Chandrasekaran

New User


Joined: 01 Jun 2010
Posts: 61
Location: India

PostPosted: Fri Nov 07, 2014 12:36 pm    Post subject:
Reply with quote

From REXX manual,

Quote:
There is no limit to the length of the values of variables, as long as all variables fit into the storage available.

Implementation maximum: No single request for storage can exceed the fixed
limit of 16 MB. This limit applies to the size of a variable plus any control
information. It also applies to buffers obtained to hold numeric results.

The limit on the length of symbols (variable names) is 250 characters



Hope this helps.


Thanks,
Arun
Back to top
View user's profile Send private message
prasadchikane

New User


Joined: 18 Feb 2014
Posts: 9
Location: India

PostPosted: Fri Nov 07, 2014 12:37 pm    Post subject:
Reply with quote

Thanks a lot Enrico and Arun
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am


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