Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to define special ascii characters (graphics)

Status
Not open for further replies.

fdf

MIS
Jul 30, 2003
38
0
0
US
I need to define special a ascii character (ascii 195 - a centered horizontal line) which I will be moving into the print line on a laser form.

How would I represent this character in working storage?

 
Should a SYMBOLIC CHARACTER in SPECIAL NAMES work? Something like this?


SPECIAL NAMES. SYMBOLIC CHARACTER UL IS 195.
 
Got it.

SPECIAL-NAMES. SYMBOLIC UL IS 196.
.
.
.
MOVE ALL UL TO UNDERLINE.
 
Code a structure like this in your WS:
Code:
 05 W-SOURCE-BYTE            PIC X(01).
 05 W-SOURCE-COMP            REDEFINES
    W-SOURCE-BYTE            PIC 9(02) COMP-X.
 88 W-CENTERED-BORDER-LINE   VALUE 195.
and code:
Code:
SET  W-CENTERED-BORDER-LINE TO TRUE.
MOVE W-SOURCE-BYTE          TO whatever

This will work on most COBOL compilers for windows & unix.
 
I do that all the time. I just code the value between quotes, using the alt function of the numeric keypad. (Hold down the Alt key, enter 195 on the numeric keypad, release the Alt key. This works with most text editors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top