Programs can start an IBM i session with the STARTSESSION UDF. The syntax of the UDF is:
UDF (‘MGEAC32.STARTSESSION’, A, B, C)
Where:
A = server name
B = user ID
C = password