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>
Subject: Re: ??? How to set NUM vars to type CHAR ???
> 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 ...