View previous topic :: View next topic
|
Author |
Message |
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
How do u find a numeric value in a string say
abc pic x(20)
watif i just wanted 20? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
if instead of asking single questions Yo' d tell what You want to do
You might get better answers |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What if this was abc20 pic x(20).
As Enrico mentioned, it will be better if you take some time and clearly describe what you are trying to accomplish rather than dumping one disconnected question after another as new topics. |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
what i want is to fetch the value in pic x(20).. i want to determine and display the pic value of the defined variable. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
OK go ahed , You still did not explain what You are trying to do..
I' ll try to infer it from You scarce info...
given a cobol copybook describing a record
You want to move to the rexx variables with the proper name the record content
right ?
learn to explain Your requirement better
and do not post questions related to the same issue in multiple topics |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
enrico-sorichetti wrote: |
OK go ahed , You still did not explain what You are trying to do..
You want to move to the rexx variables with the proper name the record
and do not post questions related to the same issue in multiple topics |
i did not get wat is sadi above....all i want is to get the value 20 in pic x(20)...ok let me come to your understanding.....say i have
a string name pic x(20)...is there any way i can retrieve the value 20...any inbuilt function???????????????????????????? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
You want to move to the rexx variables with the proper name the record |
the line was an inference from Your unclear posting style
for the topic tile the question is still badly posed
You do not want to find a numeric value, You want to parse a token within parentheses
here is a snippet
Code: |
string = "zzz pic x(20)"
parse var string ."(" token ")" .
say token
|
will not work for a string with a different layout and for a different requrement
I' ll leave to You as an exercise to find and use the proper rexx builtin function to determine if the token is numeric or not
Quote: |
...ok let me come to your understanding.....say i have
a string name pic x(20)...is there any way i can retrieve the value 20...any inbuilt function????????????????????????????
|
no need to assume that patronizing attitude ...
I am perfectly capable of understanding a simple requirement like that
and implement it |
|
Back to top |
|
|
anirudh1985 Currently Banned New User
Joined: 22 Aug 2007 Posts: 66 Location: bangalore
|
|
|
|
thanx a lot buddy...iam sorry.hope to be clear from next time |
|
Back to top |
|
|
|