Art,

> I'm looking for a good reference for CL language.

The online CL reference works for me;

[ http://publib.boulder.ibm.com/html/as400/v5r1/ic2924/books/c4157214.pdf ]

> Now to link this service program to a CL program, hopefully that would
> probably solve this issue. I am kind of new at this and have
> been stumbling on the CL language part to bring this all together.

To use *SRVPGMs, you need to be using ILE/CL (CLLE member types) obviously,
and the CALLPRC command (explained in the above book chapter 3).

If this (and it probably will) is a non-os400 *SRVPGM you are trying to bind
your ILE/CL program to, you'll need to use the two-step compile & bind
approach. To do this, use CRTCLMOD then use CRTPGM, filling in the blanks
for your module and library information. On the CRTPGM command there is a
parameter (BNDSRVPGM) for listing *SRVPGMs (such as the Vertex *SRVPGM) to
search & bind to for external procedures.

Hope this helps,

--phil



This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].