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!

SYMBOLIC CHARACTERS value problems !

Status
Not open for further replies.

Acadian

Programmer
Aug 10, 2005
5
CA
I'm developping with MICROFOCUM COBOL on a Unix (HP-UX). At compilation, i receive "Illegal character" errors...

a) The same source work great on a OPEN VMS System !

* * * * * * Comments * * * * * * *
* CHR_131 = é
* CHR_132 = â

SYMBOLIC CHARACTERS CHR_131 IS 131,
CHR_132 IS 132.

b) Compilation

cob -x test.cob

33 SYMBOLIC CHARACTERS CHR_131 IS 131,
* 4-S************************* **
** Illegal character
34 CHR_132 IS 132.
* 4-S************************* **
** Illegal character

Do i have to specify a character set or the language somewhere ?
Do you have any idea ?
 
Try CHR-131 instead of CHR_131

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank ! It work Well..It's end my two days research.

Regor
New-Brunswick, Canada
 
Also check what directives are in effect. Micro Focus *does* allow an underscore (_) in a user-defined word if you use the right directives.

Bill Klein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top