This topic describes how to create a new message definition from a COBOL data structure using the New Message Definition File wizard in the workbench.
Before you start:
You must have completed the following tasks:
Before you begin this task, you should be aware of the points listed below:
- To create a new message definition file from a COBOL data structure, the COBOL file must already be present in the workbench, for example in your message set project. This allows you to select the file in the New Message Definition File wizard.
- The wizard allows you to import COBOL files with .cbl, .ccp, .cob and .cpy extensions. If your source file has a different extension, you must rename it before attempting to import it.
- If the message set to which you are adding the new message definition file does not have an Custom Wire Format (CWF) layer, only the logical information appears in the model. You can add the physical layer to the message set before or after importing a COBOL data structure but you should add the physical layer before you import the data structure to ensure that it is populated with settings from the COBOL copybook.
- It is also possible to import a COBOL data structure from the command line using mqsicreatemsgdefs.
The steps below cover creating a completely new message definition file and overwriting the contents of an existing file.
To create a message definition file from a COBOL data structure: