Example 40.12 Selecting Numeric Case Series with the FAMEOUT= Option
This example extracts numeric case series. In addition to the already existing numeric case series in the Fame database, you can also have formulas that expand out to numeric case series. SASEFAME resolves all formulas that belong to the class and type of series data object that you specify in your FAMEOUT= option. The following statements write all numeric case series to your SAS data set.
libname lib5 sasefame "%sysget(FAME_DATA)"
fameout=case wildcard="?" ;
data csout;
set lib5.alltypes;
run;
title1 'Using FAMEOUT=CASE Option without Range';
title2 'ALLTYPES, FAMEOUT=CASE and Open Wildcard for Numeric Case Series';
proc contents
data=csout;
run;
proc print
data=csout;
run;
Output 40.12.1 and Output 40.12.2 show the results.
Output 40.12.1
Contents of OUT=CSOUT Using FAMEOUT=CASE and Open Wildcard for Numeric Case Series
The CONTENTS Procedure
FRM1 |
Num |
8 |
NUM0 |
Num |
8 |
NUM1 |
Num |
8 |
NUM2 |
Num |
8 |
NUMM |
Num |
8 |
NUM_RES |
Num |
8 |
PRC0 |
Num |
8 |
PRC1 |
Num |
8 |
PRC2 |
Num |
8 |
PRCM |
Num |
8 |
PRC_RES |
Num |
8 |
Output 40.12.2
Listing of OUT=CSOUT Using FAMEOUT=CASE and Open Wildcard for Numeric Case Series
0.00000 |
-9 |
0 |
1.33333 |
0 |
. |
-18 |
0 |
1.33333 |
0 |
. |
1.00000 |
-8 |
1 |
1.00000 |
1 |
. |
-16 |
1 |
1.00000 |
1 |
. |
0.66667 |
-7 |
2 |
0.66667 |
1.7014E38 |
. |
-14 |
2 |
0.66667 |
1.7014E38 |
. |
3.00000 |
-6 |
3 |
0.33333 |
3 |
. |
-12 |
3 |
0.33333 |
3 |
. |
4.00000 |
-5 |
4 |
0.00000 |
4 |
. |
-10 |
4 |
0.00000 |
4 |
. |
. |
-4 |
5 |
. |
5 |
. |
-8 |
5 |
. |
5 |
. |
. |
-3 |
6 |
. |
6 |
. |
-6 |
6 |
. |
6 |
. |
7.00000 |
-2 |
7 |
. |
7 |
. |
-4 |
7 |
. |
7 |
. |
. |
-1 |
. |
-1.33333 |
. |
. |
-2 |
. |
-1.33333 |
. |
. |
. |
0 |
. |
. |
. |
. |
0 |
. |
. |
. |
. |
. |
1 |
. |
. |
. |
. |
2 |
. |
. |
. |
. |
. |
2 |
. |
. |
. |
. |
4 |
. |
. |
. |
. |
. |
3 |
. |
-2.66667 |
. |
. |
6 |
. |
-2.66667 |
. |
. |
. |
4 |
. |
. |
. |
. |
8 |
. |
. |
. |
. |
. |
5 |
. |
. |
. |
. |
10 |
. |
. |
. |
. |
. |
6 |
. |
. |
. |
. |
12 |
. |
. |
. |
. |
. |
7 |
. |
-4.00000 |
. |
. |
14 |
. |
-4.00000 |
. |
. |
. |
8 |
. |
. |
. |
. |
16 |
. |
. |
. |
. |
. |
9 |
. |
. |
. |
. |
18 |
. |
. |
. |
. |
. |
10 |
. |
. |
. |
. |
20 |
. |
. |
. |
. |
Copyright © SAS Institute Inc. All rights reserved.