CallDLL Function (Magic xpa 3.x)
Magic xpa allows server-side calls to IBM i programs or service programs (DLLs) with multiple parameters, using Magic xpa’s CallDLL function. This assists simple legacy integration.
The CallDLL function syntax is shown below:
CallDLL ('MGEAC32.ISERIES', 'AAA4AAAV','AS400Call', '10.1.4.201', 'MYLIB/MYPGM','2','A10,A50','SAM','This is test message via Call DLL')
where:
-
Function = 'AS400Call'
-
IBM_i_System_Name = '10.1.4.201'
-
LIB/PGM = 'MYLIB/MYPGM'
-
Number_Of_Parameters = 2
-
Parameters Description = 'A10,A50'
-
Parm1(IBM i User) = 'SAM'
-
Parm2(Message) = 'This is a test message via the CallDLL'
When calling an IBM i program, the name of the function is the same as the name of the calling program.