/
Profound.js - Call IBMi Program Plugin

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