

Preparing for Generation and Compilation › HLL Implementation Considerations › Converting from COBOL to RPG
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:
- If you plan to create files, fields, or functions, use the YCHGMDLVAL command to change the following model values:
- Generation Type for new functions, using the command string:
YCHGMDLVAL MDLVAL(YHLLGEN) +
VALUE(*RPG)
- HLL(s) naming convention for new names, using the command string:
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.
- 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.
- Enter the model and change the source type of existing functions to RPG.
- Go to the Display Services Menu and select the option Display all functions.
- Zoom into each named object on the list.
- Generate and compile the functions.
For more information:
- On deleting items from job lists, see the Using Job Lists section in this chapter.
- On implementation names, see the Administrator Guide.
- On CA 2E commands, see the Command Reference Guide.
Copyright © 2014 CA.
All rights reserved.
 
|
|