Chapter Contents |
Previous |
Next |
CONVERT |
OS/390 specifics: | all |
Syntax |
PROC CONVERT <options>; |
Details |
PROC CONVERT produces one output SAS data set but no printed output. The new SAS data set contains the same information as the input system file; exceptions are noted in How Variable Names Are Assigned.
The procedure converts system files from these software packages:
These software packages are products of other organizations. Therefore, changes may be made that make the system files incompatible with the current version of PROC CONVERT. SAS Institute cannot be responsible for upgrading PROC CONVERT to support changes to other vendor's software packages; however, attempts to do so are made when necessary with each new version of SAS.
Information associated with each software package is given in Introduction .
PROC CONVERT Statement |
PROC CONVERT <options>; |
options can be from the following list. Only one of the options that specify a system file (BMDP, OSIRIS, or SPSS) can be included. Usually only the PROC CONVERT statement is used, although data set attributes can be controlled by specifying the DROP=, KEEP=, or RENAME= data set options with the OUT= option of this procedure. See SAS Language Reference: Dictionary for more information about these data set options. You can also use LABEL and FORMAT statements following the PROC statement.
proc convert bmdp=bmdpfile(code=judges content=data);
How Missing Values Are Handled |
How Variable Names Are Assigned |
Example of Converting a BMDP Save File |
The following statements convert a BMDP "save" file and produce the temporary SAS data set TEMP, which contains the converted data. The PROC CONTENTS output would be similar to that shown in NEW Save File Created from Data Set TEMP and Converted to SAS Data Set XYZ, Part 1 of 3.
filename ft04f001 'userid.bmdp.savefile'; proc convert bmdp=ft04f001 out=temp; run; title 'BMDP CONVERT Example'; proc contents; run;
Example of Converting an OSIRIS File |
The following statements convert an OSIRIS file and produce the temporary SAS data set TEMP, which contains the converted data. Converting an OSIRIS File shows the attributes of TEMP.
filename osiris 'userid.misc.cntl(osirdata)'; filename dict 'userid.misc.cntl(osirdict)'; proc convert osiris=osiris dict=dict out=temp; run; title 'OSIRIS CONVERT Example'; proc contents; run;
OSIRIS CONVERT Example The CONTENTS Procedure Data Set Name: WORK.TEMP Observations: 20 Member Type: DATA Variables: 9 Engine: V8 Indexes: 0 Created: 9:46 Monday, April 27, 1999 Observation Length: 36 Last Modified: 9:46 Monday, April 27, 1999 Deleted Observations: 0 Protection: Compressed: NO Data Set Type: Sorted: NO Label: -----Engine/Host Dependent Information----- Data Set Page Size: 6144 Number of Data Set Pages: 1 First Data Page: 1 Max Obs per Page: 135 Obs in First Data Page: 20 Number of Data Set Repairs: 0 Physical Name: SYS99117.T152416.RA000.USERID.R0121907 Release Created: 8.0000B2 Release Last Modified: 8.0000B2 Created by: USERID Last Modified by: USERID Subextents: 1 Total Blocks Used: 1 -----Alphabetic List of Variables and Attributes----- # Variable Type Len Pos Format Label -------------------------------------------------------------------------- 1 V1 Num 4 0 INTERVIEW NUMBER REF= 1 ID= 2 V2 Num 4 4 INTERVIEWER NUMBER REF= 2 ID= 3 V3 Num 4 8 PRIMARY SAMPLING UNIT REF= 3 ID= 4 V4 Num 4 12 REGION REF= 4 ID= 5 V5 Num 4 16 CHUNK AND SEGMENT REF= 5 ID= 6 V6 Num 4 20 LANGUAGE OF INTERVIEW REF= 6 ID= 7 V7 Num 4 24 LANGUAGE OF INTERVIEW REF=1621 ID= 8 V8 Num 4 28 LNGTH OF INTERVIEW REF=1620 ID= 9 V9 Num 4 32 12.4 WEIGHT REF=1700 ID= |
Example of Converting an SPSS File |
The following statements convert an SPSS Release 9 file and produce the temporary SAS data set TEMP, which contains the converted data. The output generated by PROC CONTENTS is similar in format to Converting an OSIRIS File.
filename spss 'userid.spssfile.num1'; proc convert spss=spss out=temp; run; title 'SPSSR9 CONVERT Example'; proc contents; run;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.