Date: Mon, 10 Aug 1998 16:10:19 -0400
Reply-To: Victor Kamensky <kamensky@AECOM.YU.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Victor Kamensky <kamensky@AECOM.YU.EDU>
Subject: Re: Multiple read in
Content-Type: text/plain; charset="us-ascii"
What version of SAS allows this?
>have you tried
>>DATA ANT;
>>INFILE ('/library/f1/' '/library/f2/');
I tried 6.12 for Windows, and it does not work:
28660 data t;
28661 length name $ 10;
28662 INFILE ('inftest' 'inftest1');
-----------
388 200
200
ERROR: Undeclared array referenced: INFILE.
28663 input name $ 1-10;
ERROR: Variable INFILE has not been declared as an array.
28664 run;
ERROR 388-185: Expecting an arithmetic operator.
ERROR 200-322: The symbol is not recognized.
NOTE: Character values have been converted to numeric values at the places
given by: (Line):(Column).
<no line/column information available>
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.T may be incomplete. When this step was stopped
there were 0 observations and 0 variables.
WARNING: Data set WORK.T was not replaced because this step was stopped.
Victor Kamensky
Programmer
Albert Einstein College of Medicine
At 11:25 PM 8/7/98 +0100, you wrote:
>In article <35CAC95E.1D4A@se.cuhk.edu.hk>, Wong Chin Pang Antonio
><cpwong@se.cuhk.edu.hk> writes
>>Hi all,
>>
>>suppose i have the following codes:
>>
>>/***/
>>DATA ANT;
>>INFILE '/library/f1/';
>>
>>A 1-2
>>B 3-4;
>>
>>DATA ANT2;
>>INFILE '/library/f2/';
>>
>>A 1-2
>>B 3-4;
>>
>>
>>DATA ANT;
>> SET ANT ANT2;
>>RUN;
>>/***/
>>
>>Some of the codes above are redundant. Actually, i want to read both f1
>>and f2 into dataset ANT. Can anyone teach me how do this in a simplier
>>way ?
>>
>>thanks and best regards,
>>
>>antonio
>
>have you tried
>>DATA ANT;
>>INFILE ('/library/f1/' '/library/f2/');
>>
>>A 1-2
>>B 3-4;
>
>--
>Peter Crawford
>
>
|