Previous Topic: AAPRMM SubroutineNext Topic: Using the Exit Program


BAADMS Subroutine

For each new prompt message created during copy of an NL-enabled function, the BAADMS subroutine creates a translated prompt message in each NL prompt message file. In other words, BAADMS iterates through the NL support file and creates a duplicate of each new base-language message, already translated into the corresponding national language, and stores it in the NL prompt message file. As a result, the new function is immediately prepared for use in multiple national language environments.

To create a new prompt message in the NL prompt message file, BAADMS internally calls a copy program (YCPYMSGR3I) that:

  1. Uses the message id of the original base-language message to retrieve the message details (the translated message) of its counterpart in the NL prompt message file. If this message id does not exist in the NL prompt message file, a new message will not be created.
  2. Creates a new prompt message in the NL prompt message file that consists of the message id allocated for the new base-language message and the retrieved translated message.