Example 40.14 Selecting String Case Series with the FAMEOUT= Option
This example shows how to extract string case series. In addition to the existing string case series in your Fame database, you can have formulas that resolve to string 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 string case series to your SAS data set.
libname lib7 sasefame "%sysget(FAME_DATA)"
fameout=stringcase wildcard="?" ;
data cstrout;
set lib7.alltypes;
run;
title1 'Using FAMEOUT=STRINGCASE Option without Range';
title2 'ALLTYPES, FAMEOUT=STRINGCASE and Open Wildcard for String Case Series';
proc contents
data=cstrout;
run;
proc print
data=cstrout;
run;
Output 40.14.1 and Output 40.14.2 show the results.
Output 40.14.1
Contents of OUT=CSTROUT Using FAMEOUT=STRINGCASE and Open Wildcard for String Case Series
The CONTENTS Procedure
STR0 |
Char |
16 |
STR1 |
Char |
16 |
STR2 |
Char |
16 |
STRM |
Char |
16 |
Output 40.14.2
Listing of OUT=CSTROUT Using FAMEOUT=STRINGCASE and Open Wildcard for String Case Series
-9 |
0 |
1.333333 |
0 |
-8 |
1 |
1 |
1 |
-7 |
2 |
0.6666667 |
2 |
-6 |
3 |
0.3333333 |
3 |
-5 |
4 |
0 |
4 |
-4 |
5 |
|
5 |
-3 |
6 |
|
|
-2 |
7 |
|
7 |
-1 |
|
-1.333333 |
|
0 |
|
|
|
1 |
|
|
|
2 |
|
|
|
3 |
|
-2.666667 |
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
-4 |
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
Copyright © SAS Institute Inc. All rights reserved.