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
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:
> infile csv("*.csv") dsd;
> input @'Spreadsheet: xyz' ID $3. time $2.
> @'"Average",' (2* AvgSatCals AvgProtein)($)
> @'"% Recommendation",' (2*PctRecSatCals PctRecProtein)($)
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= ;
1 2 ---3 4