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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

300 BMDP Procedure Chapter 16<br />

The numbered lines of code are explained here:<br />

1 This DATA step creates a <strong>SAS</strong> data set called TEMP.<br />

2 The CONTENTS procedure shows the descriptive in<strong>for</strong>mation <strong>for</strong> the data set<br />

TEMP.<br />

3 PROC BMDP calls the BMDP program BMDP1D to analyze the data set TEMP.<br />

Note the BMDP program statements UNIT=3. and CODE=’TEMP’. The results<br />

are stored in the BMDP save file NEW.<br />

The word NEW must be in the SAVE paragraph. UNIT=nn should refer to the<br />

FTnnF001 fileref that was defined in your DD statement.<br />

4 The LIBNAME statement associates the libref FT04F001 with the BMDP engine<br />

so that <strong>SAS</strong> knows which engine to use to access the data.<br />

5 The DATA step reads the BMDP save file NEW, which was created in the previous<br />

PROC BMDP step. It uses the two-level name FT04F001.NEW to reference the file.<br />

6 The CONTENTS procedure prints the in<strong>for</strong>mation regarding all members that<br />

reside in the FT04F001 file. The _ALL_ member name is a special member name<br />

<strong>for</strong> the BMDP engine; it causes PROC CONTENTS to process all BMDP members<br />

in the file.<br />

7 The CONVERT procedure converts the BMDP save file NEW to a <strong>SAS</strong> data set<br />

named XYZ. The NEW save file is on UNIT 4, that is, FT04F001.<br />

The results from this <strong>SAS</strong> program are shown in the following output:

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

Saved successfully!

Ooh no, something went wrong!