Table 24 shows how CL constants are passed from a compiled CL program
to an ILE C++ program.
Table 24. CL Constants Passed from a Compiled CL Program to an ILE C++ Program
Compile CL Program Argument | Argv Array | ILE C++ Arguments |
---|---|---|
| argv[0] | "LIB/PGMNAME" |
| argv[1..255] | normal parameters |
'123.4' | argv[1] | "123.4" |
123.4 | argv[2] | __D("0000000123.40000") |
'Hi' | argv[3] | "Hi" |
Lo | argv[4] | "LO" |
'1' | argv[5] | "1" |
A command processing program (CPP) passes CL constants as defined in Table 24. You can create your own CL command with the Create Command (CRTCMD) command and define an ILE C++ program as the command processing program.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.