Versions Compared

Key

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


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

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.

undefined

Press

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 Interace 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.

...