View previous topic :: View next topic
|
Author |
Message |
prabe
New User
Joined: 09 Mar 2007 Posts: 17 Location: kerala
|
|
|
|
Hi ,
I want to declare a varible in working storage such that leading zero should be supressed and those space are not left it as blank..
ie I declared a variale 'AUTH-CODE'
If I am moving a value '00045' then the edited result should be '45' not 'bbb45'. And give the memory utlization details such a varible |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
prabe
New User
Joined: 09 Mar 2007 Posts: 17 Location: kerala
|
|
|
|
sorry, I want to know can we declare a variable such that it size will adjust according to size of input given to it ..
ie move 1256 to ws-auth ( then ws-auth size should be 9(4))
move 124 to ws-auth ( then ws-auth size should be 9(3)) |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
No language i know of changes field definitions on the fly.
You need to define them and then use that definition.
The link posted will do what you say you want and there are other solutions posted if you take the time lo look for them. |
|
Back to top |
|
|
|