Previous Topic: Converting from RPG to COBOLNext Topic: Generating and Compiling Your Application


Converting from COBOL to RPG

This section covers converting a model you have implemented in COBOL to RPG implementation.

To convert a model to RPG:

  1. If you plan to create files, fields, or functions, use the YCHGMDLVAL command to change the following model values:

    YCHGMDLVAL MDLVAL(YHLLGEN) +
     VALUE(*RPG)

    YCHGMDLVAL MDLVAL(YHLLVNM) +
     VALUE(*RPGCBL)

Note: If you think you might ever create objects in both RPG and COBOL, set model value YHLLVNM to *RPGCBL.

  1. Delete previously submitted items from the job list for Submit Create Requests from Model (YSBMMDLCRT). You cannot change the source type of a function already on the list.
  2. Enter the model and change the source type of existing functions to RPG.
    1. Go to the Display Services Menu and select the option Display all functions.
    2. Zoom into each named object on the list.
  3. Generate and compile the functions.

For more information: