Fax Appendix 3: Sample Code for Generating the Definitions

Table Of ContentsIT Service Vision Help

Because the GENERATE SOURCE control statement runs against the WORKS.FAXES data set, and the WORKS library is deleted at the end of the current SAS session (or, in batch/background, SAS procedure), you must submit this code after the staging code in the same SAS session or procedure. Thus, if you submit the staging code from the PROGRAM EDITOR window, you would follow by submitting this code from the PROGRAM EDITOR window during the same SAS session. Or you would place both sets of code in the same SAS procedure in a batch job.

Here is the code for generating the table and variable definitions for the fax data:

%cpcat; cards4;
                  REPLACE ;
;;;;  /* ;;;; must begin in column 1 to terminate the input stream */
%cpddutl (entrynam=sasuser.cpddutl.generate.source);


(You can enter commands by using the Globals pull-down menu.)

To see the CREATE TABLE and CREATE VARIABLE control statements that are generated, see Fax Appendix 4: Sample Table and Variable Definitions.

The generated control statements include attribute information such as the variable interpretation type, the format to use for displaying the data, the default statistics to collect, and the BY and CLASS variables. For more on how GENERATE SOURCE determines what information to use, see Generic Collector Appendix 1: Algorithm Used by GENERATE SOURCE.