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.

How Missing Values Are Handled<br />

Procedures under z/<strong>OS</strong> BMDP Procedure 299<br />

Be<strong>for</strong>e the BMDP procedure sends data to BMDP, it converts missing <strong>SAS</strong> values to the<br />

standard BMDP missing value. When you use the NOMISS option in the PROC BMDP<br />

statement, observations that contain missing values are excluded from the data set that<br />

is sent to the BMDP program.<br />

Invoking BMDP Programs That Need FORTRAN Routines<br />

Some BMDP programs, such as the programs <strong>for</strong> nonlinear regression, need to invoke<br />

the FORTRAN compiler and linkage editor be<strong>for</strong>e executing. All BMDP compilation<br />

and link editing must be completed be<strong>for</strong>e you use PROC BMDP.<br />

Example of Creating and Converting a BMDP Save File<br />

Here is an example of creating and converting a BMDP save file.<br />

u data temp;<br />

input x y z;<br />

datalines;<br />

1 2 3<br />

4 5 6<br />

7 8 9<br />

10 11 12<br />

run;<br />

v proc contents;<br />

title ’CONTENTS OF <strong>SAS</strong> DATA SET TO BE RUN<br />

THROUGH BMDP1D’;<br />

run;<br />

w proc bmdp prog=bmdp1d unit=3;<br />

parmcards;<br />

/input unit=3. code=’TEMP’.<br />

/print min.<br />

/save unit=4. code=’NEW’. NEW.<br />

/end<br />

/finish<br />

run;<br />

x libname ft04f001 bmdp;<br />

y data _null_;<br />

set ft04f001.new;<br />

put _all_;<br />

run;<br />

U proc contents data=ft04f001._all_;<br />

run;<br />

V proc convert bmdp=ft04f001 out=xyz;

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

Saved successfully!

Ooh no, something went wrong!