There is an example of how SHIFT-OUT and SHIFT-IN might be used from IBM Enterprise COBOL Language Reference:
DATA DIVISION.
WORKING-STORAGE.
01 DBCSGRP.
05 SO PIC X.
05 DBCSITEM PIC G(3) USAGE DISPLAY-1.
05 SI PIC X.
.
.
.
PROCEDURE DIVISION.
MOVE SHIFT-OUT TO SO
MOVE G"<D1D2D3>" TO DBCSITEM
MOVE SHIFT-IN TO SI
DISPLAY DBCSGRP
<
Represents the shift-out control character (X'0E')
>
Represents the shift-in control character (X'0F')
I don't understand why we have to insert < and > into the G-literal content while we already have SHIFT-OUT/SHIFT-IN in SO/SI.