*DEVICE command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
<dl>
<dl>
<dt>Privileges
<dt>Privileges
<dd>Any BATCH2 job
<dd>Any [[Program_Communication_facilities#BATCH2|BATCH2]] job
<dt>Function
<dt>Function
<dd>To reset the values of the <var>[[OUTMRL_parameter|OUTMRL]]</var> and <var>[[OUTLPP_parameter|OUTLPP]]</var> parameters
<dd>To reset the values of the <var>[[OUTMRL_parameter|OUTMRL]]</var> and <var>[[OUTLPP_parameter|OUTLPP]]</var> parameters
Line 30: Line 30:
==Usage notes==
==Usage notes==
====Using *DEVICE command in BATCH2 jobs====
====Using *DEVICE command in BATCH2 jobs====
<p>To change the values used for OUTMRL and OUTLPP, use the *DEVICE command and the RESET command. </p>
<p>To change the values used for OUTMRL and OUTLPP, use the *DEVICE command and the <var>[[RESET_command|RESET]]</var> command. </p>
<p>If an input line begins with *DEVICE, followed by a number, a comma, and another number, the first number is used to change the value used for OUTMRL and the second is used to change OUTLPP. </p>
<p>If an input line begins with *DEVICE, followed by a number, a comma, and another number, the first number is used to change the value used for OUTMRL and the second is used to change OUTLPP. </p>
<p class="note"><b>Note:</b> The values of OUTMRL and OUTLPP (as returned by the VIEW command) are not actually updated, however, until the RESET command is issued.</p>
<p class="note"><b>Note:</b> The values of OUTMRL and OUTLPP (as returned by the VIEW command) are not actually updated, however, until the RESET command is issued.</p>

Latest revision as of 10:46, 23 January 2019

Summary

Privileges
Any BATCH2 job
Function
To reset the values of the OUTMRL and OUTLPP parameters

Syntax

*DEVICE n1,n2

Where:

n1 specifies characters per line
n2 specifies lines per page

Example

For example, the following line changes the value used for OUTMRL to 132 and OUTLPP to 55:

*DEVICE 132,55

Usage notes

Using *DEVICE command in BATCH2 jobs

To change the values used for OUTMRL and OUTLPP, use the *DEVICE command and the RESET command.

If an input line begins with *DEVICE, followed by a number, a comma, and another number, the first number is used to change the value used for OUTMRL and the second is used to change OUTLPP.

Note: The values of OUTMRL and OUTLPP (as returned by the VIEW command) are not actually updated, however, until the RESET command is issued.

This is the only way to affect the value of OUTMRL used for output lines; that is, the RESET OUTMRL command does not have the effect of changing the buffer size of OUTMRL unless it is preceded by a *DEVICE command.

You do not need to be logged in to issue this command.