Calling an ILE C++ Program - IBM-ILE

This program shows how to retrieve a return value from main. A CL command called SQUARE calls an ILE C++ program SQITF. The program SQITF calls another ILE C++ program called SQ. The program SQ returns a value to program SQITF.

Note: Returning an integer value from an ILE C++ program may impact performance.

You use the CL command prompt SQUARE to enter the number you want to determine the square of for the ILE C++ program SQITF:

To enter data for the program SQITF enter the command SQUARE and press F4 (Prompt). Type 10, and press Enter. The output is

Calling an ILE C   Program

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM-ILE Topics