Yes, the fact that HLASM considers the name field to be '# 1' rather than # 
(see message) indicates that the character between # and 1 is not a blank, but 
rather some character that does not display.

Go into the file in the ISPF editor, find that line, type HEX ON, and see what 
you see.

Charles

-----Original Message-----
From: IBM Mainframe Assembler List [mailto:[email protected]] On 
Behalf Of AFG
Sent: Saturday, November 25, 2017 5:49 PM
To: [email protected]
Subject: Re: Special character # on ASM names

Jonathan and Abe probably hit the nail on the head. What puzzled me is that a 
space between the '#' and the '1'

Could that [space] or [non-printable] character be the problem ?
e.g. wasn't that meant to be:  #1 EQU 1

Andreas Geissbuehler

On 2017-11-24 05:30, Hilario wrote:
> 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


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to