CL Command Reference - ADDRPTOND

CL Command List > ADDRPTOND Reference

Description:

The Add Report to OnDemand (ADDRPTOND) command allows you to load reports in OnDemand. During this process the report is broken into segments, indexed, compressed, and stored on disk for retrieval and later migration to optical or tape media if desired.


Examples:

Example 1: Simple Example

ADDRPTOND APPGRP(CHECKSTMTS) SPLF(CKSTMTPRTF)

This command submits a job to batch that will archive a spooled file named CKSTMTPRTF from the current job into an OnDemand Common Server application/application group called CHECKSTMTS. All other command parameter defaults are used, including the default instance name of QUSROND.



Example 2: More Complex Example

ADDRPTOND APPGRP(CHECKSTMTS) APP(¡¯Corporate Account Statements¡¯)
SPLF(CKSTMTPRTF) JOB(123456/OPERATOR/NIGHTBATCH)
SPLNBR(*LAST) INSTANCE(ACCTING)

This command submits a job to batch that will archive a spooled file named CKSTMTPRTF from a nightly batch job called NIGHTBATCH into an OnDemand Common Server application called Corporate Account Statements within an application group called CHECKSTMTS. The data will be archived into an instance named ACCTING.



Example 3: More Complex Example

ADDRPTOND APPGRP(INVOICES) INPUT(*STMF)
STMF(¡¯/PDFFiles/Inv0214.pdf¡¯)

This command submits a job to batch that will archive a stream file named Inv0214.pdf located in directory /PDFFiles into an OnDemand Common Server application called INVOICES within an application group called INVOICES. The data will be archived into the default instance named QUSROND.



Example 4: More Complex Example

ADDRPTOND APPGRP(INVOICES) INPUT(*STMF)
STMF(¡¯/PDFFiles/Inv0214.pdf¡¯)

This command submits a job to batch that will archive a stream file named Inv0214.pdf located in directory /PDFFiles into an OnDemand Common Server application called INVOICES within an application group called INVOICES. The data will be archived into the default instance, QUSROND.