LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 2001, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 18 Sep 2001 14:22:36 -0700
Reply-To:   "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Subject:   Re: macro language enhancement
Comments:   To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Content-Type:   text/plain; charset=iso-8859-1

I'll ditto that Ron! I vote. Mark

PS: They also need to fix the array version of INTO: to trim the trailing spaces. The TRIM and NOTRIM have no effect, and using trim() also has no effect. Non-multiple vars of INTO: get trimmed fine.

-----Original Message----- From: Fehd, Ronald J. [mailto:rjf2@CDC.GOV] Sent: Tuesday, September 18, 2001 2:09 PM To: SAS-L@LISTSERV.UGA.EDU Subject: macro language enhancement

in the select clause allow a CR/LF == CarriageReturn+LineFeed as argument to the separated by clause.

This will facilitate reading and proofreading of long macro variables created by the into :<macro-variable-name> clause.

example: proc SQL noprint; select trim(MemName) into :LIST separated by " " from DICTIONARY.TABLES where MemType = "DATA" and LibName = "LIBRARY" ;quit; %PUT LIST<&LIST.>; This produces a looooong line, which is hard to read, since it runs past the viewable edge of the screen.

result: 845 %PUT LIST<&LIST.>; LIST<FMT0002 FMT0008 FMT0102 FMT9706 FMT9802 FMT9806 FMT9902 FMT9908 FORMATS

...>

if we have some special character: separated by "<name of automagic CR/LF>" then the desired result might be:

845 %PUT LIST<&LIST.>; LIST<FMT0002 FMT0008 FMT0102 FMT9706 ...>

vertically long, but neverthless, easier to comprehend

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov


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