Enable AS400 commands in InterFormNG2

Enable AS400 commands in InterFormNG2

One of the prerequisites for calling functions in InterFormNG2 via commands on the IBM i platform is, that you have enabled AS400 commands in the InterFormNG2 configuration.

 

It is possible to setup InterFormNG2 to run the commands on another machine or another platform from the IBM i. You just need to ensure, that you have a valid license for the base, that is running on the IBM i platform.

 

InterFormNG2 will not execute any AS400 command requests, if AS400 commands are not enabled.

 

To enable the AS400 commands you need to edit the configuration file, application-default.properties. It is highly recommended to save a copy of the file before you edit it.

 

On the IBM i platform you find the application-default.properties files in the IFS inside: /iformng2/InterFormNG-shell/Core.

 

On the windows platform you find the configuration file inside: C:\Program Files\InterFormNG2

 

To enable AS400 commands you need to add this line to the properties file:

enable.as400.commandLine=true

 

So after the edit your file might contain these lines:

 

interformng2.privateKey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                  

server.port=8086

enable.as400.commandLine=true

 

Important: Remember to restart the InterFormNG2 service after changing the configuration file. The changes are activated after the next restart. On the IBM i platform you restart the InterFormNG2 service by stopping and starting the subsystem, IFORMNG2/IFORMNG2. The procedure for the Windows platform is covered in this section.

    • Related Articles

    • Extra PCL commands

      The Extra PCL commands workflow component is an advanced set meta data workflow component. It only has effect, if you later merge into a PCL print data stream later in the same workflow. With this you can add your own PCL commands in the PCL output ...
    • The AS400 commands

      The AS400 commands : It is possible to run a CL command from your CL-programs on the IBM i (AS400) platform. If you want to do that, then you should check out this section for the prerequisites. InterFormNG2 is shipped with two predefined commands, ...
    • Extra PJL commands

      With this advanced set meta data workflow component, you can add your own PJL commands in the PCL/PDF output from InterFormNG2 e.g. for enabling/disabling color printing, stapling, punching to select a specific output bin or include user ID and ...
    • Mime type advanced settings

      Mime type advanced settings: This section covers mime type (printer language specific) specific settings in InterFormNG2. Depending on the type of mime type (the printer language, that is to be used for the specific printer), one of these options are ...
    • IBM i Command input

      It is possible to call InterFormNG2 functions from an IBM i command, IFORMNG2/NG2CMD. The command then calls an InterFormNG2 workflow, which can generate various output and also return an output file to the command. The command will wait for the ...