IBM i Command input

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 workflow to complete. If an error occurs in the called workflow, then the command return an error.

 

Prerequisites

In order for the command option to work you first need to ensure, that the following prerequisites are met:

 

1.On the IBM i you need to install InterFormNG2 - or at least the IFORMNG2 library.

2.It is highly recommended to request and enter a license code for the license screen in option 91. License of the IFORMNG2/IFORMNG2 menu.

3.You need to enable AS400 commands on the settings of InterFormNG2.

4.You need to setup the AS400 Command API configuration file on the IBM i.

5.You need to setup one or multiple AS400 command workflows in InterFormNG2, that match the command functions, that you want to execute.

6.You my also notice the list of how parameters on the commands match up with workflow variables.

7.The IFORMNG2/IFORMNG2 subsystem needs to run. If it does not run, then it will be started, when one of the AS400 commands are executed.

 

If the prerequisites above are met you can now call one of the InterFormNG2 AS400 commands.

 

In short the important thing for the workflows, that execute the AS400 commands is the field, Path. This is what you can use to link a command with a specific workflow.

In the image below the path is PRINT and you should refer to that in the COMMAND field of the commands to select this specific workflow.

 

NG2AS400CMDInput0001

    • Related Articles

    • Workflow input types

      The workflows of InterFormNG2 can get the input from various input types. In the workflow the input type is shown as the leftmost (green) component: The input types are all listed here: AS400 Command input Call InterFormNG2 via a command on the IBM i ...
    • Setup AS400 command workflows

      The third of the prerequisites for calling functions in InterFormNG2 via commands on the IBM i platform is, that you have setup matching workflows, that are triggered by the AS400 commands, that you call. The workflows that you create must have the ...
    • Execute native OS command

      Execute native OS command : This component will be unavailable if file system access has been disabled in the system settings. This component executes a native operating system command on which the application is running. This can be any command, but ...
    • Setup InterFormNG2 AS400 command API

      The second of the prerequisites for calling functions in InterFormNG2 via commands on the IBM i platform is, that you have setup the InterFormNG2 AS400 command API on the IBM i platform. This needs to be setup in order to tell the commands how to ...
    • PDF input and output

      If you want to create PDF output in InterFormNG2, then you need to setup a workflow in InterFormNG2 to do that. If you want to use the PDF inside of an email, then you should consider to check out the email output options first, as the normal create ...