Skip to content

Data STructure subfields that are VARCHAR are 2-bytes shorter than they should be #461

@bobcozzi

Description

@bobcozzi

I have this structure in RPG IV fixed format:

     D http_hdr_t      DS                  Qualified Inz Template
     D  elems                         5I 0
     D  name                        255A   Varying
     D  value                       255A   Varying

     D hdr             DS                  LikeDS(http_hdr_t) Based(pHdr)
     D header          DS                  LikeDS(http_hdr_t) Inz

When I debug the symbols table and look at the subfields for struct HDR, I see:
NAME 253 VARYING
They should be:
NAME 255 VARYING

And the actual length should be 257 since VARYING adds 2 bytes.
I am checking for VARYING so 257 isn't strictly needed, but the length should be corrected to 255 in these cases.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions