SQL/MP Report Writer Guide

Customizing a Report
HP NonStop SQL/MP Report Writer Guide527213-001
4-68
Printing Double-Byte Characters
Using Correctly-Sized “I” Display Descriptors With Subtotal Column
Labels
Figure 4-33 demonstrates how to use the “I” display descriptor with a number that is
larger than the column in order to accommodate the entire subtotal string.
The addition of the I12 display descriptor adjusts the DEPTNUM column so that it
occupies twelve print positions (an even number) instead of seven.
Figure 4-32. Using an Even-Numbered Display Descriptor for Subtotal Labels
VST0432.vsd
DEPTNUM
9000
c1c2c3c4
1000
c1c2c3c4
3000
SALARY
175500.00
175500.00
137000.10
137000.10
136000.00
S>
S>DETAIL DEPTNUM AS I8, SALARY;
>>SET SUBTOTAL_LABEL _KANJI"c1c2c3c4c5c6";
>>SET LIST_COUNT 0;
>>SELECT * FROM PERSNL.EMPLOYEE;
S>L F 3;
S>BREAK ON DEPTNUM;
S>SUBTOTAL SALARY;
S>
S>