Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $RESETPRINT

$RESETPRINT
Resets the output arguments. (C)
Invocation
CALL $RESETPRINT(length, width, page_number, media)
 
An integer specifying the number of lines per page or screen. Valid values are greater than or equal to 1 and less than or equal to 32767. Its syntax is B (binary) with length 2.
An integer specifying the number of columns per page or screen. Valid values are greater than or equal to 1 and less than or equal to 256. Its syntax is B (binary) with length 2.
When media is set to SCR, the width must be less than or equal to 255.
An integer specifying the page number that appears on the subsequent page. Valid values are greater than or equal to 1 and less than or equal to 32767. If page_number is zero, no page number is printed. Its syntax is B (binary) with length 2.
filename – Specifies that output is to be directed to the named file.
Its syntax is C (fixed-length character string), with length 54.
Usage Notes
Use $SETPRINT to initialize the print arguments.
If a data set name is specified for media, the data set must be pre-allocated.
Control characters are emitted only if media is set to PRT. Control characters can be included in the output to a data set if PRT is redirected to a data set (for example, by specifying a file under the Print Parameters section of the User Profile option on the workbench).

Exceptions
 
length – Is less than or equal to zero.
width – Is less than or equal to zero, or is greater than 256.
page_number – Is less than zero.
media – Is a number or is a partitioned data set with no member specified.
Example
The following rule sets the print arguments using $RESETPRINT and prints a line to the message log:

 
RESETPRINT_1;
_
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ CALL $RESETPRINT(5, 40, 10, 'SCR'); | 1
_ CALL $PRINTLINE('THIS LINE IS PRINTED AT THE NEW SETTINGS' | 2
_ );
_ ------------------------------------------------------------------------

 
Resulting Output
Pressing PF2 after executing this rule displays the following screen:

 
------------------------- INFORMATIONAL MESSAGE LOG -----------------
COMMAND ===> SCROLL ===> P
 
 
--------------- NEW PAGE ---------------
 
Page 10
THIS LINE IS PRINTED AT THE NEW SETTINGS

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved