For OS/390, when passing parameters from Smalltalk to COBOL, or vice
versa, you must correctly define the parameters in each application.
The following table summarizes the more common data types.
Table 1. Smalltalk to COBOL parameter definition for OS/390
Smalltalk parameter type | Smalltalk class | COBOL definition |
pointer | String | PIC X. |
pointer | String | PIC X(25). |
int32 | Integer | PIC S9(9) COMP. |
uint32 | Integer | PIC S9(9) COMP. |
float | Float | COMP-2. |
struct | OSPtr |
01 Structure. 02 A PIC X. ... 02 Z PIC X |
For more information on call-out on OS/390, see the following sections.