Profound.js - Call IBMi Program Plugin



The "Call IBMi Program" plugin includes a converter functionality that extracts parameters from RPG Code Snippets:

This button opens a popup window wherein you can add RPG code snippets and the plugin will extract parameters from them which you can optionally use when calling an IBM i program.

Call IBMi Program Plugin - Extract parameters from RPG Code Snippet

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 using all columns:

    **free dcl-pi *n; flda char(1);   fldb char(1); end-pi;



    Note: In order for the extraction process to recognize the code, **free is required for free-format code that uses all columns.


  • Free-format not using all columns–free format code cannot be in the 1st through 7th columns without *free: 

    12345*7: Comment line to force this box to format the lines below correctly. dcl-pi *n; flda char(1);   fldb char(1); end-pi;



    • That is, there must be at least 7 spaces to the left of those lines of code.

  • Fixed-format 

  • As long as the specifications and parameters are in the correct positions, then fixed format can be used.

    12345*7: Comment line to force this box to format the lines below correctly. C     *entry        plist     C                   parm                    flda              1     C                   parm                    fldb              1