12. Report-Writer Statements : Report Setup Statements : .Name Statement—Assign a Name to a Report : Description
 
Share this page                  
Description
The .name statement is required and must be the first statement specified for a report. The program sreport stores the report in the database under the report name rather than the file name of the file containing the report specification statements.
Specifications for several reports can be stored in one text file by using several .name statements. Each occurrence of a .name statement signals the end of the previous report's specification statements and the beginning of a new report. You can then save the reports in the database by using sreport.
When executing a report directly by using the ‑i flag with the report command, you must have exactly one .name statement specifying one report only. The .name statement cannot appear in a file specified by an .include statement.