View previous topic :: View next topic
|
Author |
Message |
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Hi,
I have a field say test = 'character' .i need to check whether the value in the field is numeric or not in rexx. I've written a logic to check for numeric just wanted to know is there any in built function in rexx to do that,Like we have NUMERIC in cobol. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
IIRC, there was a real elegant answer to your question not too long ago, but damned if I can find it with search....Unless I'm confusing terms, one of the gifted REXX gurus will have your answer "real soon now, ya' hear". |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
There is a BIF for that purpose, called DATATYPE. So your IF would be something like this "IF DATATYPE(TEST,"W") THEN..."
For more information regarding DATATYPE, please refer to the fine manual.
O. |
|
Back to top |
|
|
krk_kumar1
New User
Joined: 14 Mar 2006 Posts: 39
|
|
|
|
Thank u very much ofer71. |
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
Nice RTFM!
but it looks like URLS don't highlight until you mouse-over them - here I subtly change the bbCode to highlight the link you kindly gave (incidentally that is a refer nowadays as it has changed!) ...
ofer71 wrote: |
For more information regarding DATATYPE, please refer to the fine manual |
Please download this manual to your C: drive (I use DownloadDirector and the equivalent directory for all of my many manuals and you should really try and get all the major ones there: JCL, TSO, ISPF, SDSF, dfSMS, etc).
The best way is (sorry, the Only way) is to read the manuals from cover to cover!
I have been sadly lacking in this respect and just recently read the ISPF 1.8 Developers Guide (although we don't have 1.8 yet) and found it better documents existing things that I had misunderstood.
krk_kumar1... Brew a fresh pot of tea, roll a spliff, or open a bottle of wine/beer/scotch/vodka (whichever your religion supports?)(mine doesn't disallow any - but the wine would be my preference!)...
...and just plough through them.... cut/paste examples and (correct and) try them.
(then answer my questions on the forum!) ;) |
|
Back to top |
|
|
Steve Coalbran
New User
Joined: 01 Feb 2007 Posts: 89 Location: Stockholm, Sweden
|
|
|
|
Hi ofer71 I trust you realise that the entire 'downloading' diatribe above was directed towards krk_kumar1.
I just pasted the name at an inappropriate point ? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
No problem...
By the way, I prefer reading the manuals (cover to cover) directly from the web rather then downloading them. But I juess it is just a personal preference...
O. |
|
Back to top |
|
|
|