Creates a new REPORTS dataset
%newrpt;
Where |
Is Type... |
And represents... |
report |
LIBNAME |
Library referencing the location of the reports dataset. |
Details
newrpt creates a new dataset named REPORTS including all the proper fields used
to manage study reports. A PROC CONTENTS as shown below details the variables found
in this dataset.
Variable Type Len Label
----------------------------------------------
datetime Num 8 Date Time
footer1 Char 200 Footer
footer2 Char 200 Footer
footer3 Char 200 Footer
footer4 Char 200 Footer
footer5 Char 200 Footer
footer6 Char 200 Footer
footer7 Char 200 Footer
footer8 Char 200 Footer
footer9 Char 200 Footer
footer10 Char 200 Footer
header1 Char 200 Header
header2 Char 200 Header
header3 Char 200 Header
header4 Char 200 Header
linesize Num 8 Line Size
order Num 8 Order
pagesize Num 8 Page Size
path Char 200 Path
progname Char 20 Program Name
repdesc Char 80 Short Description
repname Char 20 Report Name
title1 Char 200 Title
title2 Char 200 Title
title3 Char 200 Title
title4 Char 200 Title
title5 Char 200 Title
title6 Char 200 Title
title7 Char 200 Title
title8 Char 200 Title
usrname Char 8 User Name
reptype Char 80 Report Type
layout Char 40 Graph Layout
suborder Num 8 Sub-Order
objid Num 8 Object Identification
The values captured in this data are used to manage reports for the specified study.
They are also used in the generation of the TOC (table of contents). Some of
the variables are administrative (i.e. usrname, datetime) while others are converted into
titles, footnotes and SAS macro variables used in analysis and reporting programs.
Note that a libname REPORT has to be defined before the invoking this macro because it
will create a dataset named REPORTS in the location of the specified libname.
Footnotes and titles may contain runtime
variables which will be converted to proper values during runtime.
For example, a footnote defined as:
Source: program(aelist.sas) date([datetime]) [userid]
contains date and user ID variables which are updated during runtime as shown here:
Source: program(aelist.sas) date(14JUN99:10:03) scott
The runtime variables include the following:
Runtime Variable |
Description |
[datetime] |
Date and time formatted in datetime13. |
[userid] |
User ID at run time. This is derived from the operating system variable. |
[order] |
Report object order number |
[full justify] |
Full justify the footnote line according to linesize |
Example
%newrpt;
[download newrpt.sas]
[sample data step new report download newreport.sas] |