encode_ebcdic_record
Converts a JSON object into a fixed-width IBM CP037 EBCDIC, COMP-3, or COMP-4 mainframe record using a COBOL copybook, so test data and file payloads match exact wire format.
Instructions
Encode a modern JSON object into an exact fixed-width IBM CP037 EBCDIC / COMP-3 / COMP-4 mainframe wire record.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"copybook": "<copybook>",
"record": "<record>"
},
"name": "encode_ebcdic_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | JSON object matching Copybook field names (camelCase or COBOL UPPER-CASE). | |
| copybook | Yes | COBOL Copybook source text. |