4.7.1 Executing the LANSA INQUIRE Function with RPG
The sample RPG members are an examples of directly calling a LANSA function. They show the basics necessary to set up all relevant information for a function. The function is executed in English.
The programs UD@FUNC1 & UD@FUNC3 call the LANSA function INQUIRE - 'Browse/Maintain Employee and Skill Files' and pass to the function, via the exchange list, a value for the field EMPNO - 'Employee number'.
Note: The employee number will only be exchanged if the INQUIRE function has been created with access to 3GL exchange list flag set on.