You live and learn!

I did not know you could override the length of a literal, or index into
one.

00000000 F347 2000 C058 00000000 00000058      5          UNPK  WORD
(5),=X'00C3870CB8C73BFFFFFFFFFFFFFFFFFF'(8)
00000006 F347 2000 C058 00000000 00000058      6          UNPK  WORD
(5),=X'00C3870CB8C73BFFFFFFFFFFFFFFFFFF'+0(8)
0000000C F347 2000 C059 00000000 00000059      7          UNPK  WORD
(5),=X'00C3870CB8C73BFFFFFFFFFFFFFFFFFF'+1(8)

Robert Ngan
CSC Financial Services Group

IBM Mainframe Assembler List <[email protected]> wrote on
2015/10/29 16:04:20:

> From: Paul Gilmartin <[email protected]>
> To: [email protected]
> Date: 2015/10/29 16:05
> Subject: Re: Subscripting a literal
> Sent by: IBM Mainframe Assembler List <[email protected]>
>
> On 2015-10-29 14:42, Steve Smith wrote:
> > Like HLASM, I'm not clear on what you want to do.  But &STCKEVAL(8)
means
> > that you want the 8th element of a sublisted parameter named &STCKEVAL,
> > which it ain't.  If the (8) is supposed to be a length override,
precede it
> > with a dot.
> >
> Thanks.  Yes, I intended a length override.  I stumbled on
>     &STCKEVAL+0(8), which seems to work.
>
> For whatever reason,
>     X&SYSNDX EQU &STCKEVAL is worse.
>
> And, trying to convert to hex, I confused myself by forgetting the TR.
>
> Thanks again,
> gil

Reply via email to