|
Features facilitating precise translation
When you make MHtran-2 part of your COBOL migration process, you're taking advantage of the latest in migration technology.
CURRENT-DATE, one of the most common constructs, is not valid in VS COBOL II. Adjusting this command manually requires a multi-step process; MHtran-2 reformats syntax to the new ACCEPT FROM DATE (or CICS ASKTIME) automatically in just one step. (Back to top of page.)
There are over 100 additional reserved words in VS COBOL II. DAY-OF-WEEK, for example, was used in this program as a field name. With MHtran-2, user-coded names that are now among the new VS COBOL II reserved words are prefixed to make them non-reserved words. You can select the prefix. (Back to top of page.)
MHtran-2 analyzes verbs and automatically translates them to their appropriate VS COBOL II equivalent. In this example, TRANSFORM and EXAMINE were changed to the new INSPECT syntax. (Back to top of page.)
Translating this command is straightforward in cases where the positioning quantity is specified. In this example, however, a variable must be interrogated to determine the positioning amount. The generated code then determines the case and executes the appropriate format of WRITE AFTER ADVANCING. (Back to top of page.)
MHtran-2 replaces the construct of BLL-n with ADDRESS of dataname-n. The translator also provides for cases where multiple BLLs were required for a given dataname. (Back to top of page.)
Unlike its predecessor, the VS COBOL II compiler requires strict adherence to syntax rules. MHtran-2 corrects many syntax errors in old programs, allowing them to be compiled successfully. (Back to top of page.)
IDMS uses over 30 of the words that are newly reserved in VS COBOL II. When the IDMS option is set, MHtran-2 will not translate IDMS reserved words, allowing them to operate as before. For example: (a) shows the handling of a new reserved word during the translation of an IDMS program; (b) illustrates the handling of the same word during a non-IDMS translation. (Back to top of page.)
MHtran-2 handles CA-Panvalet and CA-Librarian included text as simply as it does COPYs. The included text is logically merged with the program for translation, then translated and output separately to the appropriate library. (Back to top of page.)
Since the ON condition is not supported by VS COBOL II, MHtran-2 sets up a counter for each ON conditional, increments it, and then tests it with an IF statement. (Back to top of page.)
This is just a sampling. Contact us for more information on the other powerful features of MHtran-2.
Back to the MHtran-2 product page.
|