View previous topic :: View next topic
|
Author |
Message |
Aravind Kumar. S
New User
Joined: 28 Apr 2005 Posts: 26
|
|
|
|
hi,
How to use INSPECT for checking a particular string is having number?
Thanks,
Aravind |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi Arvind,
Try this....
Code: |
INSPECT WS-XY TALLYING I FOR ALL "0"
"1"
"2"
"3"
"4"
"5"
"6"
"7"
"8"
"9".
IF I > 0
DISPLAY ' NUMBER FOUND'. |
Regards,
Priyesh. |
|
Back to top |
|
|
Aravind Kumar. S
New User
Joined: 28 Apr 2005 Posts: 26
|
|
|
|
thanks Priyesh,
But is there anything, to check it in single command like,
inspect string tallying i for all numbers
Thanks,
Aravind.S |
|
Back to top |
|
|
|