Actually, this is the answer I'm looking for.  I got carried away trying to
use the actual data type associated with the field when defining them.  I
do want to use L'Long1 but the actual data type it's defined as is
irrelevant so I can use CL1504.
Just forgot that B fields are limited to 256 bytes, but I can use C or X to
define longer fields.

Robert Ngan
CSC Financial Services Group

IBM Mainframe Assembler List <[email protected]> wrote on
2014/02/26 14:23:09:

> From: Mark Hammack <[email protected]>
> To: [email protected]
> Date: 2014/02/26 14:26
> Subject: Re: What's the difference between...
> Sent by: IBM Mainframe Assembler List <[email protected]>
>
> Not really the answer you are looking for, but why not:
>
> Long1  DS  CL1504          binary data (1 field of 1504 characters)
>
> The assembler should take that and doesn't really care what data you put
in
> the field.
>
> Or you could try:
>
> Long1 DS 1504B             (1504 1 byte values treated as one field)
>
> The first option is a 1504 character long value.  The second is 1504 1
byte
> values treated as one field.  I think the only real difference is the
> length value.  In the first case L'Long1 gives you 1504, in the second I
> believe L'Long1 returns 1 but don't quote me on that (someone else will
> point out the error of my ways).
>
>
> Mark
>
>
>
>
> On Wed, Feb 26, 2014 at 2:08 PM, Robert Ngan <[email protected]> wrote:
>
> > I want to define a large field e.g.
> >
> > Long1    DS    BL1504            What I want
> >
> > but you can't defined fields longer than 256 bytes, so instead I did:
> >
> > Long2    EQU   *,1504,C'B'       What I need to code
> >          DS    (L'Long2)B        ...
> >
> > Is there any real difference between Long1 and Long2, if not then why
can't
> > I use the simpler Long1 syntax?
> >
> > Robert Ngan
> > CSC Financial Services Group

Reply via email to