KB Article 9725

Contact Tech Support

 Email Tech Support
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base Search
Recent KB Articles
Product FAQs
Code Samples
Tech Blog
System Requirements
Installation Instructions
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services

How to use Free format code within ProGen Plus

Product: ProGen Plus Type: Frequently Asked Question

If you want to use free format RPG code within ProGen Plus, you can use either of the following methods:

  1. Use USRSRC actions within the actions editor. The code must be started and ended with the compiler tags of /free and /end-free. The user source defaults to have a C in position 8. The C must be removed and the /free must start in position 9. There is no validation for the code, but a sample is shown below:
          1.00  USRSRC       /free
         2.00  USRSRC        if (MCO# = 1);
          3.00  USRSRC        MCO# = 2;
         4.00   USRSRC        endif;
          5.00  USRSRC       /end-free
  2. Use the USRCOD action within the actions editor. This action will create a source member that will be copied into the ProGen Source. Once again there is no validation, and you need to start with a /free and end with a /end-free compiler statement.


Rate This Article

Did this example help you to achieve your goal?
 Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Please enable JavaScript in order to rate this page.