IBM Support

PI58250: DSECT UTILITY CONVERTING TO INCORRECT TYPES

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 is generating incorrect variable types for
    'DS AL2' and 'DS AL3' ASM input.  These ASM statements should
    be generated as 'unsigned' types, but the DSECT utility is
    generating them as signed.
    
    
     DSECT conversion utility>Generation of structures
     http://www-01.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/
     com.ibm.zos.v2r1.cbcux01/genstruct.htm?lang=en
    
       Address
       DS A
              void *name;
       DS AL1
              unsigned char name;
       DS AL2
              unsigned short name;
       DS AL3
              unsigned int name : 24;
       DS 4A
              void *name[4];
       DS 4AL1
              unsigned char name[4];
       DS 4AL2
              unsigned short name[4];
       DS 4AL3
              unsigned char name[4][3];
    
    
    
       === TEST CASE ===
    
    TEST       DSECT ,
    FIELD1     DS    AL1
    FIELD2     DS    AL2
    FIELD3     DS    AL3
    FIELD4     DS    AL4
    FIELD      DS    A
    FIELDD     DS    AD
               END
    
    
       === OUTPUT ===
    struct TEST {
      unsigned char  FIELD1;
      short int      FIELD2;        <====== SHOULD BE UNSIGNED
      int            FIELD3 : 24;   <====== SHOULD BE UNSIGNED
      void          *FIELD4;
      unsigned char  _filler1Ý2¨;
      void          *FIELD;
      unsigned char  FIELDDÝ8¨;
      };
    

Local fix

  • Manually edit generated code.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: XLC USERS UTILIZING DSECT UTILITY WITH DS    *
    *                 OF TYPE AL2 ORAL3.                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: AL2 IS TRANSLATED TO SHORT INT AND AL3  *
    *                      TO INT:24.                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    .
    

Problem conclusion

  • APPLY PROVIDED SERVICE.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI58250

  • Reported component name

    C/C++ FOR MVS

  • Reported component ID

    56551210A

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-02-29

  • Closed date

    2016-07-06

  • Last modified date

    2016-10-03

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

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

    PI58815 PI67354

Modules/Macros

  •    CCNEPP
    

Fix information

  • Fixed component name

    C/C++ FOR MVS

  • Fixed component ID

    56551210A

Applicable component levels

  • R790 PSY UI39212

       UP16/09/02 P F609

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":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSQKCWV","label":"IBM C\/C++ for MVS\/ESA"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"790","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
22 August 2024