LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (April 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 10 Apr 2003 14:48:15 -0400
Reply-To:   "Droogendyk, Harry" <Harry.Droogendyk@CIBC.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Droogendyk, Harry" <Harry.Droogendyk@CIBC.COM>
Subject:   Re: Append to extenal file
Content-Type:   text/plain; charset="iso-8859-1"

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


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