How do I create a Hub asset from COBOL copybooks?
For RPC, add an asset from the input and output copybooks (or a single copybook with both) on the matching connector (CICS, IMS, AS/400 COBOL, and so on). Partner or module APIs that start from copybooks follow the same rule: both sides of the contract must parse. See Asset Management and RPC Flow Methods.
If conversion fails
- Copybook does not match the dataset layout (
REDEFINES,OCCURS, wrong code page). - COBOL CALL with multiple parameters needs one asset structure per parameter, not a single flattened copybook unless that is how the program is actually called.
- IMS COBOL vs CICS copybooks are not interchangeable.
OL Code can open and compile the COBOL and create or test Hub assets from source when you are not starting from isolated copybooks.