02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

310 CONVERT Procedure Chapter 16<br />

How Missing Values Are Handled<br />

If a numeric variable in the input data set has no value or has a system missing value,<br />

PROC CONVERT assigns a missing value to it.<br />

How Variable Names Are Assigned<br />

The following sections explain how names are assigned to the <strong>SAS</strong> variables that are<br />

created by the CONVERT procedure.<br />

CAUTION:<br />

Because some translation of variable names can occur (as indicated in the following<br />

sections), ensure that the translated names will be unique. R<br />

Variable Names in BMDP Output Variable names from the BMDP save file are used<br />

in the <strong>SAS</strong> data set, except that nontrailing blanks and all special characters are<br />

converted to underscores in the <strong>SAS</strong> variable names. The subscript in BMDP variable<br />

names, such as x(1), becomes part of the <strong>SAS</strong> variable name, with the parentheses<br />

omitted: X1. Alphabetic BMDP variables become <strong>SAS</strong> character variables of length 4.<br />

Category records from BMDP are not accepted.<br />

Variable Names in <strong>OS</strong>IRIS Output For single-response variables, the V1 through V9999<br />

name becomes the <strong>SAS</strong> variable name. For multiple-response variables, the suffix Rn is<br />

added to the variable name, when n is the response. For example, V25R1 would be the<br />

first response of the multiple response V25. If the variable after or including V1000 has<br />

100 or more responses, then responses above 99 are eliminated. Numeric variables that<br />

<strong>OS</strong>IRIS stores in character, fixed-point binary, or floating-point binary mode become<br />

<strong>SAS</strong> numeric variables. Alphabetic variables become <strong>SAS</strong> character variables; any<br />

alphabetic variable whose length is greater than 200 is truncated to 200. The <strong>OS</strong>IRIS<br />

variable description becomes a <strong>SAS</strong> variable label, and <strong>OS</strong>IRIS print <strong>for</strong>mat<br />

in<strong>for</strong>mation is translated to the appropriate <strong>SAS</strong> <strong>for</strong>mat specification.<br />

Variable Names in SPSS Output SPSS variable names and labels become variable<br />

names and labels without any changes. SPSS alphabetic variables become <strong>SAS</strong><br />

character variables of length 4. SPSS blank values are converted to <strong>SAS</strong> missing values.<br />

SPSS print <strong>for</strong>mats become <strong>SAS</strong> <strong>for</strong>mats, and the SPSS default precision of no decimal<br />

places becomes part of the variables’ <strong>for</strong>mats. The SPSS DOCUMENT data is copied so<br />

that the CONTENTS procedure can display them. SPSS value labels are not copied.<br />

Example of Converting a BMDP Save File<br />

The following statements convert a BMDP save file and produce the temporary <strong>SAS</strong><br />

data set TEMP, which contains the converted data. The PROC CONTENTS output<br />

would be similar to that shown in Output 16.1.<br />

filename ft04f001 ’userid.bmdp.savefile’;<br />

proc convert bmdp=ft04f001 out=temp;<br />

run;<br />

title ’BMDP CONVERT Example’;<br />

proc contents;<br />

run;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!