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 (January 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.
Comments: To: mark b <mark.barlow@FINSERVICES.CO.UK>
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


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