Hilario, do not let yourself be confused by the appearance of the character.
All characters are actually a hex code between X'00' and X'FF' - the meaning of each code depends on the current codepage. What compiles is the # character in the default codepage, represented by code X'7B'. So make sure you use character code X'7B' - what character gets displayed on your screen is irrelevant. Browse your code in hex mode to make sure you have code X'7B' and not something else. BTW: in Ascii/Unicode the same character is normally encoded as X'23'. If you edit your code on a PC you may need to make sure you have that code. Even if that is correct, you'll have to double check that the source code is translated correctly, so that the source code in Ebcdic on the MF does contain X'7B'. Kind regards & success, Abe Kornelis ========== Op 24-11-2017 om 11:30 schreef Hilario: > Hello group, > > I have to compile source programs with variables that contain the # > character. When compiling the ASM I get the following error: > > ERR # 1 EQU 1 > ** ASMA143E Bad character in name field - # 1 > ** ASMA167E Required name missing > > I have tried to compile the program with the parameter CODEPAGE with values > of 1145, 1140, ... and I always get the error. > > I am solving the problem by changing the # by @ character. I understand that > there is a correct way to solve this problem. > > Thank you very much. > > Hilario >
