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 (June 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 24 Jun 2002 17:14:05 -0400
Reply-To:   Quentin McMullen <QuentinMcMullen@WESTAT.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Quentin McMullen <QuentinMcMullen@WESTAT.COM>
Subject:   Re: Using a var value in a subsequent data step
Comments:   To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Content-Type:   text/plain; charset="iso-8859-1"

From: Fehd, Ronald J. [mailto:rjf2@CDC.GOV]:

> data mydata; > set in; > length my_var $&MAXLEN.; > > Uh, Jack, David, <tsk, tsk> > "Not enough notes!" nor dots > after the format name.. > .....................^^ snake eyes!

But Ron, that's not supposed to be a format, it's a length specification. So you don't want/need a dot at the end. Even if SAS tolerates the mistaken use of a format, I'd think it is to be avoided. Also seems like SAS tolerates a space between the $ sign and the number:

121 data a; 122 length alpha $ 5; 123 alpha='abcdefg'; 124 put alpha=; 125 run;

alpha=abcde

Kind Regards, --Quentin


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