> It is illogical that this does not work but that is the way it is.
>
> Do S-constants work? That is, is S(=x'123') valid, and might that work for
> you?
>
> Do you have to use literals? Can you use named constants instead?
>
> Charles
I have this issue in a set of macro's that generate a data structure. The
assembler source that contains the macro's looks like this:
FQM5831R FQ536STR
FQ536GRS imsout
FQ536GRS ctl
FQ536FLD rc,'PIC X(8)'
FQ536FLD rsn,'PIC X(8)'
FQ536FLD rsnmsg,'PIC X(8)'
FQ536FLD rsntxt,'PIC X(128)'
FQ536GRE
FQ536GRS msgdata,OPT=YES
FQ536GRS mbr,OPT=YES
FQ53Z# TKN=X'0508000000000004'
FQ53ZGP
FQ536FLD msg,'PIC X(80)'
FQ53ZC MNM=0,MXM=8
FQ536GRE
FQ536GRE
FQ536GRE
FQ536END
END
The macros have to generate a data structure that encodes this record layout.
Fieldnames like 'startDate' and 'endDate' tend to occur more than once in a
structure (on different levels) and I only want to generate the literal once.
If I could calculate a A constant from an S-constant (by adding the start of
literal pool) this might work. I'll give it a go.
-----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended
recipient. If you are not the intended recipient, don't use or disclose it in
any way. Please let the sender know and delete the message immediately.
-----------------------------------------------------------------