File: howto.html

package info (click to toggle)
hmisc 3.4-3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,428 kB
  • ctags: 631
  • sloc: asm: 22,806; fortran: 490; xml: 160; ansic: 84; makefile: 1
file content (43 lines) | stat: -rw-r--r-- 1,154 bytes parent folder | download | duplicates (12)
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>