Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Length of a variable - REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
sridevi_g

New User


Joined: 15 Nov 2005
Posts: 4

PostPosted: Fri Nov 25, 2005 3:23 pm    Post subject: Length of a variable - REXX
Reply with quote

Hi,

Can you please let me know how to find the entire length of a variable.
For example., Assume X is of 10 digit long, but it contains only 5 digits then the command LENGTH(X) gives 5. But i am interested in knowing the entire length of the variable (i.e., I am interested in the command which will give the value as 10).

Regards,
Sri
Back to top
View user's profile Send private message
References
PostPosted: Fri Nov 25, 2005 3:23 pm    Post subject: Re: Length of a variable - REXX Reply with quote

jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 106
Location: Douglasville, GA USA

PostPosted: Sat Nov 26, 2005 3:24 am    Post subject:
Reply with quote

The function I beleve you are looking for is x = digits(). This will return the number of digits used in calculations.
Back to top
View user's profile Send private message
mak_tcs

Active User


Joined: 23 Nov 2005
Posts: 76
Location: Minneapolis, MN USA

PostPosted: Mon Nov 28, 2005 11:15 am    Post subject: Re: Length of a variable - REXX
Reply with quote

Hi,

U shud have declared

numeric digits 5
x=12

now digits() will display value 5

Thanks,
Mani
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1