Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Numeric Check for a field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Numeric Check for a field
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: 3158
Location: Tucson AZ

PostPosted: Sun Feb 11, 2007 4:50 am    Post subject:
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: 2360
Location: Israel

PostPosted: Sun Feb 11, 2007 9:46 am    Post subject:
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    Post subject: Re: Numeric Check for a field
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: 85
Location: Stockholm, Sweden

PostPosted: Mon Feb 12, 2007 12:34 am    Post subject:
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: 85
Location: Stockholm, Sweden

PostPosted: Mon Feb 12, 2007 12:39 am    Post subject: Re: Numeric Check for a field
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: 2360
Location: Israel

PostPosted: Mon Feb 12, 2007 12:05 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us