On Wed, 1 May 2024 10:53:41 +0100, Jonathan Scott <[email protected]> 
wrote:

>> "The result of C2A is the same as is obtained from
>>         &value  SETA  C'charstring'
>> except that C2A give a zero result for null strings, and
>> does not pair apostrophes or ampersands before conversion."
>
>It's hard to tell what the original writer (in the 1990s) had in
>mind, but I would agree that this is confusing and unhelpful.
>

Agreed.

>The C2A function simply processes its operand string SETC value
>exactly as provided.
>
>Pairing relates to how information is entered, and there is a
>complication that a conditional assembly character constant in
>the form '&&amp;' is two ampersands, but a self-defining term or DC
>constant of the form C'&&amp;' is one ampersand.
>

This paragraph explains the behavior seen. Thank you.

Regards, John Ganci

Reply via email to