Date: Tue, 28 Aug 2001 12:18:42 -0400
Reply-To: "Hunley, Ike" <Ike.Hunley@BCBSFL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Hunley, Ike" <Ike.Hunley@BCBSFL.COM>
Subject: Re: Hex to decimal, or incrementing HEX numbers
Content-Type: text/plain; charset=iso-8859-1
Thanks IAN.
That worked! I've spent a LOT of time reading the SAS manual(I'm learning
as I write) and I did not see that.
Ike
-----Original Message-----
From: Ian Whitlock [mailto:WHITLOI1@WESTAT.com]
Sent: Tuesday, August 28, 2001 12:01 PM
To: Hunley, Ike
Subject: RE: Hex to decimal, or incrementing HEX numbers
Ike,
Use
retain dunit 7000x ;
and get the $-signs out of your numeric formats.
IanWhitlock@westat.com
-----Original Message-----
From: Hunley, Ike [mailto:Ike.Hunley@BCBSFL.COM]
Sent: Tuesday, August 28, 2001 11:56 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: Hex to decimal, or incrementing HEX numbers
Thanks everyone for your response. I see that I did not make my request
clear, however...
We have a SAS process that now works. In order for it to work I have to
first translate a HEX number to decimal..
For example, the original number is 7000(HEX). I manually translate this to
28672(Decimal), then enter it in the following statement..
RETAIN DUNIT3 28762;
The SAS routine then will output this in HEX with the following statements
and increment the number. This works, but I'd like to have SAS perform the
HEX ot DECIMAL translation.
IF MDL = 3 THEN
DO;
PUT @1 '//DISK1 DD UNIT=3390,VOL=SER=' DUNIT3 $HEX4.
ZERO $HEX1. ZERO $HEX1. ',DISP=OLD /* MOD3 */';
DUNIT3 = DUNIT3 + 1;
END;
IF MDL = 9 THEN
DO;
PUT @1 '//DISK1 DD UNIT=3390,VOL=SER=' DUNIT9 $HEX3.
DUNIT9 $HEX3. ',DISP=OLD /* MOD9 */';
DUNIT9 = DUNIT9 + 1;
I tried using...
RETAIN DUNIT3 7000;
FORMAT DUNIT3 HEX4.;
I don't get the desired reeslts when I do this.
Blue Cross Blue Shield of Florida, Inc., and its subsidiary and
affiliate companies are not responsible for errors or omissions in this
e-mail message. Any personal comments made in this e-mail do not reflect the
views of Blue Cross Blue Shield of Florida, Inc.
Blue Cross Blue Shield of Florida, Inc., and its subsidiary and
affiliate companies are not responsible for errors or omissions in this e-mail message. Any personal comments made in this e-mail do not reflect the views of Blue Cross Blue Shield of Florida, Inc.