LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 1996)Back to main REXXLIST pageJoin or leave REXXLIST (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 15 Feb 1996 12:04:49 +0100
Reply-To:     REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
Sender:       REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
From:         Cem Turgay <tur@EUROCONTROL.DE>
Organization: Eurocontrol
Subject:      Re: ??? How to set NUM vars to type CHAR ???

jschult@IBM.NET wrote: > How can I set a DATATYPE CHAR to a variable that is inherently NUM? > I need to have a numeric value be either declared or converted to a > character value for comparision to a database value. > > Any ideas are greatly appreciated!

But there is no (real) numeric things in Rexx ! Everything (numerics, bin, hex, dec etc.) hold as char bytes. I can't understand what type of data you are geting from db but I'll say 2 solution:

1. If you get a binary value from DB to rexx variable 'bin' you can compare it like:

If C2D(bin) = <any number> Then ...

2. If you get a character value from DB to rexx variable 'chr' you can compare it like:

If chr = <any number> Then ...

Cem Turgay


Back to: Top of message | Previous page | Main REXXLIST page