Date: Thu, 6 Jan 2005 21:59:15 +0800
Reply-To: KUMAR Arun <KUMARA@ESSILOR.COM.SG>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: KUMAR Arun <KUMARA@ESSILOR.COM.SG>
Subject: Re: Adding Header/Footers to raw data file.
Content-Type: text/plain
Hi Mark,
See if this helps:
data _null_;
file "j:\sales&date.dat" lrecl=60;
set sales end=end;
if _n_=1 then put 'your header';
put
record_type $1
batch_header_number $2-9
policy_number $10-18
title_desc $19-26
initials $27-30
surname $31-60
;
if end then put 'your footer';
run;
Regards
Arun
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of mark b
Sent: Thursday, January 06, 2005 9:02 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Adding Header/Footers to raw data file.
I have successfully created a .dat file using the below code.
data _null_;
file "j:\sales&date.dat" lrecl=60;
set sales;
put
record_type $1
batch_header_number $2-9
policy_number $10-18
title_desc $19-26
initials $27-30
surname $31-60
;
run;
Is it possible to add a header and footer in the file being created?
Thanks
Mark