IBM Support

PI80281: INCORRECT DSECT UTILITY OUTPUT

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The DSECT utility C struct output is incorrect in 2 scenarios.
    
    
    
       === TEST CASE 1 ===
    TEST       DSECT
    FIELD1     DS    AL1
    VARDATA    DS    0CL128
               END
    
    Actual output:
    
    struct test {
      unsigned char  field1;
      __extension__ unsigned char  vardata[128];
      };                         // Incorrect struct size
    
    Expected output:
    
    struct test {
      unsigned char  field1;
      __extension__ union {
        unsigned char  _vardata[128];
        } _test_union1[0];
      };
    
    
    
       === TEST CASE 2 ===
    TEST       DSECT
    FIELD1     DS    AL1
    ALIGN      DS    0F
    FIELD2     DS    C
               END
    
    Actual output:
    
    struct test {
      unsigned char  field1;
      unsigned char  _filler1[3];
      struct {
        unsigned char  _field2;
        unsigned char  _filler2[3];
        } align;
      };
    
    Expected output:
    
    struct test {
      unsigned char  field1;
      unsigned char  _filler1[3];
      union {
        __extension__ int      _align[0];
        unsigned char  _field2;
        } _test_union1;
      };
    

Local fix

  • 
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: ASM source with fields having duplication    *
    *                 factor of zero. For example                  *
    *                 VARDATA    DS    0CL128                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: The C struct generated by DSECT utility *
    *                      does not match the layout of dummy      *
    *                      section produced by HLASM               *
    ****************************************************************
    .
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

  • 
    

Comments

  • 
    

APAR Information

  • APAR number

    PI80281

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    7A0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-04-20

  • Closed date

    2017-05-12

  • Last modified date

    2017-07-05

  • APAR is sysrouted FROM one or more of the following:

    PI78984

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • CCNECICS CCNECWI  CCNED220 CCNEDSCT CCNEDWRT CCNEFILT CCNEHIFC
    CCNEMDEP CCNEOPTP CCNEP    CCNEPP   CCNETBY  CCNMSGE  CCNMSGT
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R7A0 PSY UI46641

       UP17/06/08 P F706

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSTLTF","label":"z\/OS XL C\/C++"},"Platform":[{"code":"PF054","label":"z\/OS"}],"Version":"7A0","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
28 March 2021