If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
What do you mean by “convert”? Many RPG (or any other language) programs have no easy analogue in SQL. Many others can be converted but only by making them harder to understand, sometimes much harder. That’s why RPG and other languages are still so numerous.
Is there a reason behind the question?
Technically, you “convert” by coding embedded SQL into the RPG source instructions and processing the source through the SQL precompiler. (The “SQLRPG” and “SQLRPGLE” member types really have nothing to do with it. Those are just indicators for PDM to know how to interpret your option choices.)
Take Shift F6 from WRKMBRPDM Screen. Change ‘Y’ to change Type and Text Option.
I always leave that as ‘N’. If I want to change PDM type or object text, I use option 13=Change text. It causes me much less trouble from accidental changes, and I’m not constantly having to tab past those fields.
Regardless, the RPGLE/SQLRPGLE “types” are for the developer tools that can help automate compilations. Most commonly the types are for PDM. They can control the choice of compile command that PDM uses. Other tools, e.g., Aldon, tend to use the same “type” codes.
But without knowing what tool is used or without knowing what is meant by “convert”, answers can only be guesses. You can use any PDM or other tool “type” (or none) and still successfully compile a source member as RPGLE or SQLRPGLE simply by using the appropriate CRTxxx command, assuming the member has compatible source statements.
What do you mean by “convert”? Many RPG (or any other language) programs have no easy analogue in SQL. Many others can be converted but only by making them harder to understand, sometimes much harder. That’s why RPG and other languages are still so numerous.
Is there a reason behind the question?
Technically, you “convert” by coding embedded SQL into the RPG source instructions and processing the source through the SQL precompiler. (The “SQLRPG” and “SQLRPGLE” member types really have nothing to do with it. Those are just indicators for PDM to know how to interpret your option choices.)
Tom
Take Shift F6 from WRKMBRPDM Screen. Change ‘Y’ to change Type and Text Option.
Press Enter. Convert the Source now
To convert RPGLE program to SQLRPGLE in ALDON use option 16 in front of the object and enter new attibute in Object Attribute field
Take Shift F6 from WRKMBRPDM Screen. Change ‘Y’ to change Type and Text Option.
I always leave that as ‘N’. If I want to change PDM type or object text, I use option 13=Change text. It causes me much less trouble from accidental changes, and I’m not constantly having to tab past those fields.
Regardless, the RPGLE/SQLRPGLE “types” are for the developer tools that can help automate compilations. Most commonly the types are for PDM. They can control the choice of compile command that PDM uses. Other tools, e.g., Aldon, tend to use the same “type” codes.
But without knowing what tool is used or without knowing what is meant by “convert”, answers can only be guesses. You can use any PDM or other tool “type” (or none) and still successfully compile a source member as RPGLE or SQLRPGLE simply by using the appropriate CRTxxx command, assuming the member has compatible source statements.
Tom