Call RPG Programs from M3

Call RPG Programs from M3

To call RPG From the M3 Pattern you have 2 options to inherit from:

@EXCUSRPGM

This is the default pattern , this uses the JT400 toolkit to make the call to the RPG program.  

Requirements

To use this you should use the M3 Login process as this process gets/sets all the information for the logged user
As long as the M3 login function is used to access the application, logged user library list will be used

-EXCUSRPGM

When inherit from this pattern the application  will just call the RPG object directly, using the CA Plex Dispatcher

Requirements

You will need to re-generate all the calling functions to be sure this work.
Make sure to set the "DefaultAS400" entry of the properties file.