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
------------------------------
Original Message:
Sent: Mon February 10, 2025 05:16 AM
From: Melvin Reji
Subject: zoS connect Open api 3 data type query
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
------------------------------