Example 40.11 Selecting Boolean Case Series with the FAMEOUT= Option
This example shows how to extract all Boolean case series from the ALLTYPES Fame data base. The following statements write all Boolean case series to the BOOOUT SAS data set.
title1 '***famallt: FAMEOUT Option, Different Type Values***';
options validvarname=any;
%let FAME=%sysget(FAME);
%put(&FAME);
%let FAMETEMP=%sysget(FAME_TEMP);
%put(&FAMETEMP);
libname lib4 sasefame "%sysget(FAME_DATA)"
fameout=boolcase wildcard="?" ;
data booout;
set lib4.alltypes;
run;
title1 'ALLTYPES FAMEOUT=BOOLCASE for Boolean Case Series';
title2 'Using FAMEOUT=CASE BOOLEAN Option without Range';
proc contents
data=booout;
run;
proc print
data=booout;
run;
Output 40.11.1 and Output 40.11.2 show the results for the Boolean case.
Output 40.11.1
Contents of OUT=BOOOUT Using FAMEOUT=BOOLCASE for Boolean Case Series
The CONTENTS Procedure
BOO0 |
Num |
8 |
BOO1 |
Num |
8 |
BOO2 |
Num |
8 |
BOOM |
Num |
8 |
BOO_RES |
Num |
8 |
Output 40.11.2
Listing of OUT=BOOOUT Using FAMEOUT=BOOLCASE for Boolean Case Series
0 |
1 |
0 |
1 |
. |
0 |
0 |
1 |
0 |
. |
0 |
0 |
0 |
251 |
. |
0 |
1 |
1 |
1 |
. |
0 |
1 |
0 |
1 |
. |
0 |
0 |
. |
0 |
. |
0 |
0 |
. |
0 |
. |
0 |
1 |
. |
1 |
. |
0 |
. |
0 |
. |
. |
0 |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
1 |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
0 |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
Copyright © SAS Institute Inc. All rights reserved.