https://github.com/cran/Hmisc
Tip revision: 267f8b12991f584d7550e026a7d65362a7bd114e authored by Charles Dupont on 05 May 2010, 08:08:01 UTC
version 3.8-0
version 3.8-0
Tip revision: 267f8b1
howto.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>How to Create SAS Transport Files</title>
</head>
<body>
<h1>How to Create SAS Transport Files</h1>
<ol>
<li>If any of the datasets you are exporting are not already in the
<tt>WORK</tt> library, copy them to there:
<pre>
PROC COPY IN=mylib OUT=WORK; SELECT test1 test2; RUN;
</pre>
</li>
<li>If you have created value label formats using <tt>PROC FORMAT;
VALUE ...</tt>, output these value labels into a SAS
dataset:
<pre>
PROC FORMAT CNTLOUT=format;RUN;
</pre>
</li>
<li>Define a <tt>LIBNAME</tt> to reference the SAS Version 5 transport
file engine:
<pre>
libname xp SASV5XPT "test.xpt";
</pre>
</li>
<li>Copy all needed datasets to, e.g., <tt>test.xpt</tt>:
<pre>
PROC COPY IN=work OUT=xp;SELECT test1 test2 format;RUN;
</pre>
<b>DO NOT</b> use <tt>PROC CPORT</tt> to create the file.
</li>
</ol>
<hr>
<address><a href="mailto:fharrell@virginia.edu">Frank E Harrell Jr</a></address>
<!-- Created: Wed May 21 09:11:25 EDT 2003 -->
<!-- hhmts start -->
Last modified: Fri Jun 6 15:47:58 EDT 2003
<!-- hhmts end -->
</body>
</html>