You are here:
Vanderbilt Biostatistics Wiki
>
Main Web
>
Projects
>
DMCReporting
>
ReduceDMC
>
ReduceImport
(15 May 2004,
FrankHarrell
)
(raw view)
E
dit
A
ttach
---+ Steps for Creating Analysis Files ---++ Importing SAS Data Library 1 Store SAS macro =exportlib.sas= in =~/sas/exportlib.sas= 1 In the project area for the current report under the =data= directory create a =sascsv= subdirectory 1 In the main directory for the current report create a file =exportsas.sas= containing commands like the following: <verbatim> %INCLUDE "H:/sas/exportlib.sas"; libname d SASV5XPT "H:/projects/REDUCE/foo/data/export.xpt"; %exportlib(d, H:/projects/REDUCE/foo/data/sascsv); </verbatim> This assumes that on Windows you have =H:= mapped to your home Linux directory. 1 Under Windows use =Explorer= or =My Computer= to navigate to =H:/projects/REDUCE/foo/exportsas.sas=, left click on =exportsas.sas=, and click on =BATCH SUBMISSION=. 1 After the job finishes you will see under file =exportsas.log= in the same directory as =exportsas.sas=. The only error messages you should see are related to missing formats - ignore these. 1 Use the =Hmisc= package function =sasxport.get= to read all the =.csv= files in =data/sascsv= ----- For more information see SASexportHowto.
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r3 - 15 May 2004,
FrankHarrell
Main
Department Home Page
Biostatistics Graduate Program
Vanderbilt University Medical Center
Main Web
Main Web Home
Search
Recent Changes
Changes
Topic list
Biostatistics Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback