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 (July 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 13 Jul 2002 12:12:09 -0700
Reply-To:     Roger DeAngelis <xlr82sas@AOL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Roger DeAngelis <xlr82sas@AOL.COM>
Organization: http://groups.google.com/
Subject:      Worked in 6.12 but not 8.2 - SASNAME functionality undocumented
              functions
Content-Type: text/plain; charset=ISO-8859-1

/* will check for valid SAS 6.12 name - but not SAS 7-8 */

data _null_; /* $n class is valid SAS name class */

rx = rxparse ( "` $n " ); /* $n sasname class */

length SAS_Name $40;

SAS_Name='SAS_Nam';

call rxsubstr ( rx, SAS_Name,Position,LengthName);

If Length(Trim(Left(SAS_Name))) = LengthName then put SAS_Name "is a Valid SAS Name.";

Else Put SAS_Name "is an Invalid SAS Name.";

call rxfree ( rx );

run;

/* SCL function still not avliable in macro language */

%let rc=%sysfunc(sasname(VALID)); %put rc=;


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