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 (March 2002, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 4 Mar 2002 13:13:37 -0500
Reply-To:     "Huang, Ya" <ya.huang@PFIZER.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Huang, Ya" <ya.huang@PFIZER.COM>
Subject:      Re: A possible bug of SAS viewer
Comments: To: Carol Gosselin <clgossel@GW.FIS.NCSU.EDU>
Content-Type: text/plain

I also run SAS 8.2 on W2k, my viewer is release 8.2.1.0 (4/04/2001), what version of viewer you use?

Ya Huang -----Original Message----- From: Carol Gosselin [mailto:clgossel@GW.FIS.NCSU.EDU] Sent: Monday, March 04, 2002 10:11 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: A possible bug of SAS viewer

I am running SAS 8.2 on Windows 2000 and I do not see that behavior. The variables look fine in the viewer.

Carol L. Gosselin Applications Analyst Programmer II University Planning and Analysis Box 7002, 201 Peele Hall North Carolina State University Raleigh, NC 27695-7002 Phone: 919-515-6435 Fax: 919-831-3541 Email: carol_gosselin@ncsu.edu

>>> "Huang, Ya" <ya.huang@PFIZER.COM> 03/04/02 12:17PM >>> Hello SAS_Ler,

For those who use SAS viewer, a weird behavior might be of interesting to you. Try to run the following piece of code and open the created data set junk.sas7bdat with SAS viewer, you will see that cv1 and cv2 show values of cv1||cv2 and cv2||cv3. But cv3 anc cv4 are fine. This because that cv1 and cv2 have length=8, but their attached format is $15. It seems that when a character var's length is less then its format's length, SAS viewer will screw up the value in display, although internally the value is correct (it can be proved by running a where query in viewer).

libname y 'c:\temp';

data y.junk; length cv1 cv2 cv3 cv4 $8; format cv1 cv2 $15.; cv1='abc'; cv2='def'; cv3='ghi'; cv4='jkl'; run;

I personally consider it a bug. It scared me when I see the result is not what I expected.

Any comments?

Ya Huang


Back to: Top of message | Previous page | Main SAS-L page