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 (December 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 24 Dec 2008 12:08:22 -0500
Reply-To:     Ian Whitlock <iw1sas@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Ian Whitlock <iw1sas@GMAIL.COM>
Subject:      Re: Multiple variable length text files
Comments: cc: schreier.junk.mail@gmail.com
Content-Type: text/plain; charset=ISO-8859-1

Howard wrote in part:

>How about following up on an earlier suggestion to use the >@[character-literal] mechanism. This works:

>data two; > infile csv("*.csv") dsd; > input @'Spreadsheet: xyz' ID $3. time $2. > @'"Average",' (2* AvgSatCals AvgProtein)($) > @'"% Recommendation",' (2*PctRecSatCals PctRecProtein)($) > ; > run;

I was most surprised to see that the "2*" notation worked on the INPUT statement. It is documented for the PUT statement, but is there any hint of its working on INPUT?

Apparently it also work in this context, albeit not so useful.

data _null_ ; input @3*'-' x ; put x= ; cards ; 1 2 ---3 4 ;

-- Ian Whitlock


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