|
|||
This is a coded page segment:
!""L®^"" S1SIGMLL"ŸdŸ""
The hex code would look like this:
5A0016D3AF5F000005E2F1E2C9C7D4D3D3000078FFFFFF
| carr cntl |
field length |
defines psegment |
label field |
page segment name |
X Coordinate |
Y Coordinate |
| 5A | 0016 | D3AF5F | 000005 | E2F1E2C9C7D4D3D3 | 000078 | FFFFFF |
constant |
constant |
constant |
constant |
this example is S1SIGMLL |
this is 0.5 inch |
variable (null) |
Note: See table below for X and Y coordinate values.
To enter the data in your program while in XEDIT, bring the line you are working on to the current line and type the following:
SET IMAGE OFF
SET CASE M
SET HEX ON
Below is an example of COBOL code used for SIGMA letter writer programs.
In this program the '!' (5A) is coded in a seperate field for the
carriage control. However you code it, this must be in column 1 of the
print line. When the printer sees this 5A hex code in the carriage
control position it knows that the rest of the code in that line needs
special handling.
*****************************************************************
01 COPY-GROUP-INFO.
05 CCC PIC X(01) VALUE '!'.
05 WS-COPY-RECORD.
10 FILLER PIC X(08) VALUE '""L?o"""'.
10 WS-COPY-GROUP PIC X(08) VALUE SPACES.
01 TRANSFORM-FLAG PIC X(01) VALUE 'N'.
01 SIGNATURE-CODE PIC X(23) VALUE '""L0¢"" S1SIGMLL""d"""'.
01 REV-NOTIF-CODE PIC X(23) VALUE '""L0¢"" S1REVISE" h""q'.
*****************************************************************
|
The position of the code in this example will go between columns 45 and 66 (between the single quotes)
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7.
01 SIGNATURE-CODE PIC X(23) VALUE ' '
|
Type - V HEX 45 66 (The screen will change to hex - below)
+ . . . . .5. . . . + . . . . .6. . . . + .
40404040404040404040404040404040404040404040
|
Start typing the hex code exactly as in the table above (in this case starting with the 0016 field). When you get to the page segment name you can enter the first four characters (2 bytes) E2F1 (S1) and leave the next 12 characters (6 bytes) blanks (40 hex) and change them later. Of course if you know the hex codes for the name just type them in. The next six characters (3 bytes) are the 'X' position. This is the position from left to right. Run the INHEX EXEC to find this code. The last six characters (3 bytes) are the 'Y' position. This will normally be coded as 'FFFFFF' to allow the page segment to float up and down the page. If you want the image in a permanent position on the page you must also code this using the HEX value table.
**IMPORTANT** Any time you work on this line you must type in all of the commands (SET IMAGE OFF, SET CASE M, SET HEX ON). If you even try to change one character, whether it is part of the page segment or not, it will altered and will not work.
| Inches | HEX Value |
Inches | HEX Value |
Inches | HEX Value |
| 0.0 | 000000 | 3.7 | 000378 | 7.4 | 0006F0 |
| 0.1 | 000018 | 3.8 | 000390 | 7.5 | 000708 |
| 0.2 | 000030 | 3.9 | 0003A8 | 7.6 | 000720 |
| 0.3 | 000048 | 4.0 | 0003C0 | 7.7 | 000738 |
| 0.4 | 000060 | 4.1 | 0003D8 | 7.8 | 000750 |
| 0.5 | 000078 | 4.2 | 0003F0 | 7.9 | 000768 |
| 0.6 | 000090 | 4.3 | 000408 | 8.0 | 000780 |
| 0.7 | 0000A8 | 4.4 | 000420 | 8.1 | 000798 |
| 0.8 | 0000C0 | 4.5 | 000438 | 8.2 | 0007B0 |
| 0.9 | 0000D8 | 4.6 | 000450 | 8.3 | 0007C8 |
| 1.0 | 0000F0 | 4.7 | 000468 | 8.4 | 0007E0 |
| 1.1 | 000108 | 4.8 | 000480 | 8.5 | 0007F8 |
| 1.2 | 000120 | 4.9 | 000498 | 8.6 | 000810 |
| 1.3 | 000138 | 5.0 | 0004B0 | 8.7 | 000828 |
| 1.4 | 000150 | 5.1 | 0004C8 | 8.8 | 000840 |
| 1.5 | 000168 | 5.2 | 0004E0 | 8.9 | 000858 |
| 1.6 | 000180 | 5.3 | 0004F8 | 9.0 | 000870 |
| 1.7 | 000198 | 5.4 | 000510 | 9.1 | 000888 |
| 1.8 | 0001B0 | 5.5 | 000528 | 9.2 | 0008A0 |
| 1.9 | 0001C8 | 5.6 | 000540 | 9.3 | 0008B8 |
| 2.0 | 0001E0 | 5.7 | 000558 | 9.4 | 0008D0 |
| 2.1 | 0001F8 | 5.8 | 000570 | 9.5 | 0008E8 |
| 2.2 | 000210 | 5.9 | 000588 | 9.6 | 000900 |
| 2.3 | 000228 | 6.0 | 0005A0 | 9.7 | 000918 |
| 2.4 | 000240 | 6.1 | 0005B8 | 9.8 | 000930 |
| 2.5 | 000258 | 6.2 | 0005D0 | 9.9 | 000948 |
| 2.6 | 000270 | 6.3 | 0005E8 | 10.0 | 000960 |
| 2.7 | 000288 | 6.4 | 000600 | 10.1 | 000978 |
| 2.8 | 0002A0 | 6.5 | 000618 | 10.2 | 000990 |
| 2.9 | 0002B8 | 6.6 | 000630 | 10.3 | 0009A8 |
| 3.0 | 0002D0 | 6.7 | 000648 | 10.4 | 0009C0 |
| 3.1 | 0002E8 | 6.8 | 000660 | 10.5 | 0009D8 |
| 3.2 | 000300 | 6.9 | 000678 | 10.6 | 0009F0 |
| 3.3 | 000318 | 7.0 | 000690 | 10.7 | 000A08 |
| 3.4 | 000330 | 7.1 | 0006A8 | 10.8 | 000A20 |
| 3.5 | 000348 | 7.2 | 0006C0 | 10.9 | 000A38 |
| 3.6 | 000360 | 7.3 | 0006D8 | 11.0 | 000A50 |