---+ 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.
This topic: Main
>
Projects
>
DMCReporting
>
ReduceDMC
>
ReduceImport
Topic revision:
15 May 2004,
FrankHarrell
(raw view)
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