home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!raven.alaska.edu!snalo.swadm.alaska.edu!user
- From: snalo@orca.alaska.edu (Lewis Overton)
- Newsgroups: bit.listserv.sas-l
- Subject: SAS datasets ====> .wks
- Message-ID: <snalo-190892112025@snalo.swadm.alaska.edu>
- Date: 19 Aug 92 19:22:39 GMT
- References: <SAS-L%92081812533005@UGA.CC.UGA.EDU>
- Sender: news@raven.alaska.edu (USENET News System)
- Followup-To: bit.listserv.sas-l
- Organization: U of Alaska
- Lines: 36
- Nntp-Posting-Host: snalo.swadm.alaska.edu
-
- In article <SAS-L%92081812533005@UGA.CC.UGA.EDU>, Greg Nelson
- <GNELSON@UGA.BITNET> wrote:
- >
- > Does anyone have any experience in working with transferring data from a SAS
- > dataset to a lotus or Excel file?
-
- This is essentially the same as Steve Doig's answer about transferring data
- from SAS datasets to a desktop spreadsheet. I use it for Mac-based EXCEL,
- which is happier with tab-delimited fields than all those quotes.
-
- I've included the MVS definitions for the sequential file. It is allocated
- only the first time, then reused with overwrite on subsequent usages. You
- could fancy this up with macros to specify source dataset and destination
- file, but since I copy this code in and modify it (specifying which
- variables to write) I haven't bothered.
-
- filename xfer '.xfer.data' disp=(mod,catlg,delete)
- space=(trk,(10,10)) /* create */
- ;
-
- data _null_;
- file xfer old recfm=vb blksize=204 lrecl=200
- ;
- set ht.people ;
- put
- ssn '05'x
- name '05'x
- mau '05'x
- div '05'x
- dept '05'x
- unit '05'x
- ;
- run;
-
- Lewis Overton, University of Alaska
- snalo@orca.alaska.edu or snalo@alaska.bitnet
-