z/OS Connect Enterprise Edition

z/OS Connect

z/OS Connect

Truly RESTful APIs to and from your IBM Z mainframe

 View Only
  • 1.  How to Preserve camelCase in Field Names When Importing a COBOL Copybook in z/OS Connect Service Interface Editor in IDZ v16.0.3

    Posted 06/29/26 05:54 AM

    Hello,

    I am using the z/OS Connect Enterprise Edition plugin within IBM Developer for z/OS to build a new service.

    My process involves importing a COBOL copybook from a mainframe LPAR to define the service interface. The field names within this copybook are formatted using camelCase (e.g., messageId, channelId).

    However, when I import the copybook into the Service Interface Editor, the tool automatically converts all the field names to UPPERCASE (e.g., MESSAGEID, CHANNELID).

    While I can manually edit each field in the "Interface Rename" column to restore the camelCase format, this is inefficient for copybooks with a large number of fields.

    My question is: Is there a setting, preference, or configuration option within IBM Developer for z/OS or the z/OS Connect plugin that will prevent this automatic conversion to uppercase and preserve the original camelCase format of the fields during the import process?



    ------------------------------
    Nagaraj P K
    ------------------------------


  • 2.  RE: How to Preserve camelCase in Field Names When Importing a COBOL Copybook in z/OS Connect Service Interface Editor in IDZ v16.0.3

    Posted 06/30/26 12:40 AM

    Would seem you are using the older OpenAPI2 capability of zOS Connect

    There is no option to preserve case when importing the COBOL copybook, and there will never be 

    You should really move to using the OpenAPI3 approach to create your zOS Connect APIs, using the designer, see

    https://www.ibm.com/docs/en/zos-connect/3.0.0?topic=desktop-create-cics-tutorial-workspace-using-docker

    There is far more capability in using the designer to create zCEE APIs



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



  • 3.  RE: How to Preserve camelCase in Field Names When Importing a COBOL Copybook in z/OS Connect Service Interface Editor in IDZ v16.0.3

    Posted 07/01/26 08:44 AM

    Thanks for the clarification. If we move to the OpenAPI 3 approach using the z/OS Connect Designer, can you please confirm whether copybook fields can be imported without automatic uppercasing, so the original camelCase names are preserved? Also, if any conversion still occurs, is there a recommended way in the Designer to retain or restore the original field naming convention efficiently?



    ------------------------------
    Nagaraj P K
    ------------------------------



  • 4.  RE: How to Preserve camelCase in Field Names When Importing a COBOL Copybook in z/OS Connect Service Interface Editor in IDZ v16.0.3

    Posted 07/01/26 05:37 PM

    the older OpenAPI2 uses what is called a bottom up approach, in that you start by loading the COBOL copybook, build a service then build an API using that service

    with OpenAPI3 and designer, it's a meet in the middle approach, where you create a yaml file that describes the API, you create a zOS asset that represents what you want to call on zOS, when you create this asset you import the COBOL copybooks, case does not matter, because you then do what is on this link

    https://www.ibm.com/docs/en/zos-connect/3.0.0?topic=path-map-api-response-fields

    which is to select what COBOL copybook field to put into the JSON response field , which is why case does not matter

    I suggest you set up podman or docker on your pc, download the designer, then try out the tutorial here

    https://www.ibm.com/docs/en/zos-connect/3.0.0?topic=workspace-using-docker-desktop



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