IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Numeric Check for a field


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krk_kumar1

New User


Joined: 14 Mar 2006
Posts: 39

PostPosted: Sun Feb 11, 2007 4:28 am
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 11, 2007 4:50 am
Reply with quote

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". icon_smile.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Feb 11, 2007 9:46 am
Reply with quote

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
View user's profile Send private message
krk_kumar1

New User


Joined: 14 Mar 2006
Posts: 39

PostPosted: Sun Feb 11, 2007 10:20 pm
Reply with quote

Thank u very much ofer71.
Back to top
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Mon Feb 12, 2007 12:34 am
Reply with quote

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!) icon_smile.gif ...
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
View user's profile Send private message
Steve Coalbran

New User


Joined: 01 Feb 2007
Posts: 89
Location: Stockholm, Sweden

PostPosted: Mon Feb 12, 2007 12:39 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Feb 12, 2007 12:05 pm
Reply with quote

No problem... icon_biggrin.gif

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to check whether who renamed the ... JCL & VSAM 3
Search our Forums:

Back to Top