Specific software is required to compile and execute the applications generated with the COBOL generator.
- In iSeries you must have GX library installed. It can be obtained here.
- Also, you must have an iSeries connection to transfer the programs. The connection may be TCP/IP or through Client Access.
- To work in iSeries, the user must have the rights described in Necessary permits to work and Permits/Approvals required for GX library.
- Create a model selecting the COBOL generator.
- Select File/New/Knowledge Base (CTRL + CAPS LOCK + N)
- Select a Name and Location for the KB. Next, press Create with default options
- Go to preferences, select the Environment, and change the following properties:
- User Interface: Windows
- Language: COBOL/400 (the Data Source will change to iSeries Native)
- Target Path: you can leave it as is but we recommend changing it to something similar to COBiSeries<Id>
- Name: you can leave it as is but we recommend changing it to something similar to COBiSeries
- Select Generator and update the following properties:
- Server Name: iSeries IP or Name
- User: iSeries User
- Password: iSeries Password
- Select Default Data Store, right-click, and Change Data Store: iSeries Native
- In the DBMS options, type the name of the programs and data library to be created in iSeries.
- Select the transfer method to be used for the transfer. TCP/IP is recommended since it is the fastest according to the tests performed.
- Once this has been set up, the model can be created in iSeries.
- Once the programs have been specified and generated, transfer them to iSeries. For this, you must go to the Run or F5 option and select the programs you want to transfer. Next, the programs are sent to iSeries for them to be compiled. Once the programs have been transferred and compiled, they can be executed from the iSeries commands line.
- If you want to see the developer menu associated with this model, type gx/gx Program_Library_name
Use the GXimpdbr command. For further details on how to execute this command, we suggest reading here.
COBOL Generator Properties