|
Use the "mod" option when you define the filename on subsequent iterations.
303 filename junk 'c:\temp\junk.txt';
304
305 data _null_;
306 file junk;
307 put '1st line';
308 run;
309
310 filename junk clear;
NOTE: Fileref JUNK has been deassigned.
311 filename junk 'c:\temp\junk.txt' mod;
312
313 data _null_;
314 file junk;
315 put '2nd line';
316 run;
317
318 data _null_;
319 infile junk;
320 input stuff $;
321 put _infile_;
322 run;
NOTE: The infile JUNK is:
File Name=c:\temp\junk.txt,
RECFM=V,LRECL=256
1st line
2nd line
317 NOTE: 2 records were read from the infile JUNK.
-----Original Message-----
From: Basem [mailto:batawfic@YAHOO.COM]
Sent: April 10, 2003 2:23 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Append to extenal file
How can I append data to external file
|