Miscellaneous Notes


  1. Titles and Footnotes in SAS

    Here's a quick illustration of the hierarchy of titles/footnotes in SAS:
    .
    .
    .
    proc print;
    title 'A';
    title2 'B';
    title3 'C';
    title4 'D';
    leads to the following output ==>

    A
    B
    C
    D

    PROC PRINT Output

    (using title1 'A'; above gives the same result)
    Add the following lines of code in the same SAS session:

    proc means;
    title2 'new';
    
    leads to the following output ==>

    A
    new

    PROC MEANS Output

    Notice that the specification of the new title2 leaves all titles above it untouched (i.e. title1) and flushed out/erased all titles below it as they were unspecified (i.e. title3 & title4).

    If you wanted to clear out all titles simply insert:

    title ;

    This hierarchical method works in the same way with respect to footnotes.

  2. The SCAN command in SAS ( Documentation ) may be used to take a field like 17:30 in the Komen Race for the Cure 5k data and extract an observation of 17 minutes and 30 seconds or 17.5 minutes.)