PJSCONVERT is the IBM i command that initiates the Profound.js Converter. At this time, it must be initiated from a Profound UI Genie session.
In order to use PJSCONVERT, you must:
- Have Profound UI installed on IBM i.
- Have the Profound.js Connector installed.
- Have access granted within the Profound.js Portal.
The PJSCONVERT command resides in your Profound.js installation library. The command has 6 parameters.
- File & Library of source that you would like to convert.
- Source Member Name that you would like to convert.
- Use System Naming - Either *YES, or *NO. Defaults to *YES. The converter will ask you to confirm this option before converting your code.
- Remote Database - defaults to *LOCAL. The converter will ask you to confirm this option before converting your code.
- Proxy Library - where the proxy object should be created. This parameter is optional; if omitted, a default value is used. The converter will ask you to confirm this option before converting your code.
- Proxy Object - the name of the proxy object that will be created. This parameter is optional; if omitted, a default value is used. The converter will ask you to confirm this option before converting your code.
After you run the command, you will see the Profound.js Conversion window. This is where you can analyze and convert your code.
- Cancel will back out of the window.
- Analyze will allow you to see any errors in the conversion and the cost in credits of the conversion. The errors can generally be fixed by the user doing the conversions. No credits are deducted when using the Analyze function.
- Convert will show a window to confirm your conversion options, the proxy object location, the output source IFS directory path, and the cost in credits. This button will only be available if you have enough credits.
Clicking Convert will deduct the credits and then proceed to write the converted code to the IBM i IFS, as well as create the proxy object.