Date: Sun, 29 Feb 2004 12:20:54 -0500
Reply-To: Nathaniel_Wooding@DOM.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <Nathaniel_Wooding@DOM.COM>
Subject: Re: Reading data having space
Content-type: text/plain; charset=us-ascii
Anbu
Use the & format modifier as below in the input statement. This and a
couple other modifiers are described in the SAS Language section on
modified list input.
Nat Wooding
data name;
informat name $12.;
input name & ;
datalines;
John Smith
David Sheperd
Raj Singh
;
proc print;run;
Anbu Arasu
<aarumugam@STTHOM To: SAS-L@LISTSERV.UGA.EDU
AS.EDU> cc:
Sent by: "SAS(r) Subject: Reading data having space
Discussion"
<SAS-L@LISTSERV.U
GA.EDU>
02/27/04 03:54 PM
Please respond to
Anbu Arasu
Is it possible to read the full name below, just by having on input
variable in the input statement. I tried different options. It did not
work.
Help please
This is the code.
data name;
*infile datalines dsd delimiter='';
input name $ char12.;
datalines;
John Smith
David Sheperd
Raj Singh
;