Example 40.13 Selecting Date Case Series with the FAMEOUT= Option
This example shows how to extract date case series. In addition to the existing date case series in your Fame database, you can have formulas that resolve to date 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 date case series to your SAS data set.
libname lib6 sasefame "%sysget(FAME_DATA)"
fameout=datecase wildcard="?" ;
data cdout;
set lib6.alltypes;
run;
title1 'Using FAMEOUT=DATECASE Option without Range';
title2 'ALLTYPES: FAMEOUT=DATECASE and Open Wildcard for Date Case Series';
proc contents
data=cdout;
run;
proc print
data=cdout;
run;
Output 40.13.1 and Output 40.13.2 show the results.
Output 40.13.1
Contents of OUT=CDOUT Using FAMEOUT=DATECASE
The CONTENTS Procedure
DAT0 |
Num |
8 |
YEAR4. |
4. |
DAT1 |
Num |
8 |
YEAR4. |
4. |
DAT2 |
Num |
8 |
YEAR4. |
4. |
DATM |
Num |
8 |
YEAR4. |
4. |
FRM2 |
Num |
8 |
YEAR4. |
4. |
Output 40.13.2
Listing of OUT=CDOUT Using FAMEOUT=DATECASE
1991 |
1981 |
1987 |
1981 |
1987 |
1992 |
1982 |
1986 |
1982 |
1986 |
1993 |
1983 |
1985 |
1983 |
1985 |
1994 |
1984 |
1984 |
1984 |
1984 |
1995 |
1985 |
1983 |
1985 |
1983 |
1996 |
1986 |
. |
1986 |
. |
1997 |
1987 |
. |
1987 |
. |
1998 |
1988 |
. |
1988 |
. |
1999 |
. |
1979 |
. |
1979 |
2000 |
. |
. |
. |
. |
2001 |
. |
. |
. |
. |
2002 |
. |
. |
. |
. |
2003 |
. |
1975 |
. |
. |
2004 |
. |
. |
. |
. |
2005 |
. |
. |
. |
. |
2006 |
. |
. |
. |
. |
2007 |
. |
1971 |
. |
. |
2008 |
. |
. |
. |
. |
2009 |
. |
. |
. |
. |
2010 |
. |
. |
. |
. |
Copyright © SAS Institute Inc. All rights reserved.