1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
<!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>
|