User`s manual
IBM 5250 CONTROL CODES
AXIS AX-3 Cobra+ Technical Reference 26
Set Justify Mode (SJM)
Specifies justification of all lines of text.
Count (nn): Number of bytes following this command plus one.
State (st): Valid values are:
Percent Rule (pr): The percentage rule of justification. The IBM 3812/5219 always
use full justification (100%).
Set Horizontal Margins (SHM)
Specifies the left and right margin in 1/1440th of an inch.
Count (nn): Number of bytes following this command plus one.
Left Margin (lmlm): The leftmost print position relative to the physical left margin.
Right Margin (rmrm): The rightmost print position relative to the physical left mar-
gin.
Set Presentation Page Size (SPPS)
Specifies the width and the depth of the physical page in 1/1440th of an inch.
Count (nn): Number of bytes following this command plus one.
Width (wdwd): Two bytes defining page width.
Depth (dpdp): Two bytes defining page depth.
Set Vertical Margins (SVM)
Specifies the top and bottom margin in 1/1440th of an inch.
Count (nn): Number of bytes following this command plus one.
Top Margin (tmtm): The distance from the top edge of the page to the base line of the
first print line.
Bottom Margin (bmbm): Ignored.
$2B $D2 nn $0D st pr
Value Description
$00 Inactivate justification
$01 Activate justification
$2B $D2 nn $11 lmlm rmrm
$2B $D2 nn $40 wdwd dpdp
$2B $D2 nn $49 tmtm bmbm