SendPrint

Syntax

SENDPRINT [ AS report_name ] 
device [ expression ] [ AT expression ]

Parameters

SendPrint can be abbreviated as Send or SP.

Description

The SendPrint logic command outputs a report to multiple destinations. It is applicable only to Standard reports printed under the ROC system. It is ignored for ROC Direct reports (and, on MCP-based systems, all reports that do not use ROC).

Output to the specified device or devices does not commence until a Release logic statement or end-of-job is encountered. If directed to a video device, output must be explicitly requested by the receiving terminal through the ROC menu.

Note: The SendPrint logic command is for use in Reports only. The use of this command in Ispecs and Messengers is invalid or is ignored.

Device types

The following table lists available device types.

 

Device Host TypeDescription

EX

Windows

MCP

ROC alias or the Glb.Stn value

Extract file (standard system data file)

LP

Windows

MCP

Command defined by the LP alias

Line printer

RP

Windows

MCP

(This device type is not supported on applications deployed to Windows.)

Remote printer, via Prints/Reprints

TP

Windows

MCP

Temporary file for direct reports

User-defined terminal printer

VD

Windows

MCP

Temporary file for direct reports. For other reports, no output request is created.

The attached user terminal

Failure behavior

The Glb.Status built-in segment attribute is set to "*****" if invalid device types or destinations are specified, or if no output has been produced by the report. Otherwise, Glb.Status is set to spaces upon completion of the SendPrint logic command.

Restrictions

The following restrictions apply to use of the SendPrint logic command: