Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


This plugin calls an IBMi program and optionally passes parameters to it. Parameters can both provide and receive data from the specified program.

Image Added

IBM i program

Type in the program name to call. You can qualify the program name with a specific library or let Profound.js resolve the program's library by using the "pathlist/library "list.

Extract parameters from RPG Code Snippet

This plugin also allows users to extract parameters from their existing RPG code.

Use this button to paste in RPG code that includes a Program Call Interface (dcl-pi) or Parameter Entry which it will generate the parameter definitions needed to call that Program.

You may use the following code snippets for reference:

  • Free-format:

    Code Block
    themeEmacs
    firstline1
    linenumberstrue
    **free
     dcl-pi *n;                   
       flda      char(1);         
       fldb      char(1);         
     end-pi;

    Note: **free is required for the code to be identified by the extraction process.

  • Fixed-format (remove the starting quotes when copying this code block):

    Code Block
    themeEmacs
    firstline1
    linenumberstrue
    '     C     *entry        plist
    '     C                   parm                    flda              1
    '     C                   parm                    fldb              1

    Note: Fixed format requires accurate spacing for the correct columns.

Parameter

You can specify one or more parameters to pass to the program.

Start by selecting a data type for the parameter. Based on the data type you select, other questions may appear. For example, for the "char" data type, you will have to specify the character field length.

Next, specify the argument value to pass to the program.

If the parameter is both input and output, specify how you want to capture the output. You can place parameter output into a screen field, work variable, global property, API output, Module output, or a session property.