CL Command Reference - CPYDFNRDAR

CL Command List > CPYDFNRDAR Reference

Description:

The Copy Report Definition (CPYDFNRDAR) command performs the copy operation specified by the OPTION parameter: OPTION = *EXPORT copies one or more OnDemand report definition records into a report definition transfer file named in the RPTDFNFILE parameter. This file is then available for transfer or export to another RDARS or OnDemand system. OPTION = *IMPORT copies all of the report definition records from the report definition transfer file (named in the RPTDFNFILE parameter) into the standard OnDemand report definition file. Usually, this report definition transfer file would have been created on another RDARS or OnDemand system. OPTION = *PRINT prints a summary list of the report definition records from the report definition file named in the RPTDFNFILE parameter.


Examples:

Example 1: Simple Export Example

CPYDFNRDAR OPTION(*EXPORT) RPTDFNFILE(MYLIB/MIGRDEFS)
REPORT(CHECKSTMTS)

This command will cause all versions of the OnDemand Spool File Archive report definition called CHECKSTMTS to be exported into a report definition transfer file called MIGRDEFS in library MYLIB that will contain the information to be exported.



Example 2: Simple Import Example

CPYDFNRDAR OPTION(*IMPORT) RPTDFNFILE(MYLIB/MIGRDEFS)

This example shows a corresponding import command to import the report definitions that were exported in Example 1. Typically, the report definition transfer file is moved from the source system to the target system, and then the example import command shown above is run on the target system.



Example 3: More Complex Export Example

CPYDFNRDAR OPTION(*EXPORT) RPTDFNFILE(MYLIB/MIGRDEFS)
VIEWFILE(MIGRLV)FLRFLDFILE(MIGRFF)
REPORT(*ALL) VERSION(03)

This command will cause Version 03 of all OnDemand Spool File Archive report definitions to be exported into a report definition transfer file called MIGRDEFS in library MYLIB. It will also cause any logical view definition records or folder field definition records to be exported into files called MIGRLV and MIGRFF respectively (also located in MYLIB library).



Example 4: More Complex Import Example

CPYDFNRDAR OPTION(*IMPORT) RPTDFNFILE(MYLIB/MIGRDEFS)
VIEWFILE(MIGRLV)FLRFLDFILE(MIGRFF)

This example shows a corresponding import command to import the report definitions that were exported in Example 3. Typically, the report definition, logical view definition, and folder field definition transfer files are moved from the source system to the target system, and then the example import command shown above is run on the target system.