z/OS Connect Enterprise Edition

  • 1.  zoS connect Open api 3 data type query

    Posted Mon February 10, 2025 05:16 AM

    Hi All,

    In the latest z/OS Connect, we are using an OpenAPI 3 YAML file as the initial input to the designer. I would like to confirm if z/OS Connect handles data type conversions. For example, if my YAML file specifies a field as a string and I import this YAML file into the designer, mapping it to a copybook field that is a packed decimal, does z/OS Connect manage this data type conversion, or do we need to update the YAML to specify the field as a decimal?

    Thanks 

    Melvin K Reji



    ------------------------------
    Melvin Reji
    ------------------------------


  • 2.  RE: zoS connect Open api 3 data type query

    Posted Tue February 11, 2025 02:36 AM

    Yes

    see

    https://www.ibm.com/docs/en/zos-connect/zos-connect/3.0?topic=structures-importing-cobol-data

    This link shows the COBOL data types that are supported when a copybook is imported. 

    If your string doesn't contain a valid number when zOS Connect tries to move it to a COBOL numeric field then you'll get an error from zOS Connect, so might be better to declare it as a decimal in the yaml 



    ------------------------------
    Edward McCarthy
    WAS on System z
    ------------------------------



  • 3.  RE: zoS connect Open api 3 data type query

    Posted Tue February 11, 2025 11:00 AM

    Thanks Edward.



    ------------------------------
    Melvin Reji
    ------------------------------