Chapter Contents

Previous

Next
Doing More with SAS/ASSIST Software

Inserting Date and Time Stamps in Titles and Footnotes

As discussed in the "Using the Report Engine" chapter of Getting Started with the SAS System Using SAS/ASSIST Software, you can add titles and footnotes to your report by selecting Titles or Footnotes from the Edit menu of the Report Engine window. You can use the macros &CURDATE, &CURTIME, and &CURDT to automatically generate the current date, the current time, or both the current date and time, respectively, for your output.

In the Value field for each line of the title, type the text and the macro you want to use. An example of an edited TITLES window is shown in the following display.

Edited TITLES Window

[IMAGE]

Select Close from the File menu. When prompted, select Yes to save the changes. When you run your report, the &CURDT macro generates both the current date and time automatically. You can assign a format to the macros &CURDATE, &CURTIME, and &CURDT in your user profile by using the Date format, Time format, and Datetime format options for a profile type of REPORT ENGINE. See Setting User Profile Options for additional information about user profile options.

You can also edit titles and footnotes by selecting Report Output Manager from the View menu. In the Cmd field next to the report you want to change, type E and press ENTER. The code for your report appears in the Edit window where you can edit your titles and footnotes as well as the rest of your report.

Note:   Any changes that you make to your report in the Edit window are saved only if you save your output to an external file or a SAS file. When you save your report in the Report Engine window, changes made in the Edit window are not saved with your report.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.