This example shows how to extract the source for all the formulas in the Fame database by using the FAMEOUT=FORMULA and WILDCARD="?" options. The following statements show the source of all formulas written to the SAS data set CFOROUT. Another example of the FAMEOUT=FORMULA option is shown in Example 47.6.
libname lib8 sasefame "%sysget(FAME_DATA)" fameout=formula wildcard="?" ; data cforout; set lib8.alltypes; run; title1 'Using FAMEOUT=FORMULA Option without Range'; proc contents data=cforout; run;
Output 47.15.1 and Output 47.15.2 show the results.
Output 47.15.1: Contents of OUT=CFOROUT Using FAMEOUT=FORMULA and Open Wildcard
title3 'ALLTYPES, FAMEOUT=FORMULA, and Open Wildcard for FORMULA Series'; proc print data=cforout noobs; run;
Output 47.15.2: Listing of OUT=CFOROUT Using FAMEOUT=FORMULA and Open Wildcard
If you want all series of every type, you can merge the resulting data sets. For more information about merging SAS data sets, see SAS Language Reference: Concepts.