USERNAME

Direct either the current AMB paragraph name or one you designate to name a procedure generated by the AMB Precompiler, so that your program follows the conventions, requirements or preferences of a given application or installation.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

USERNAME paragraphname

General Rules:

  1. To activate any USERNAME statement, select the USERNAME option at compile time from the AMB Precompiler Options window; otherwise, the paragraph name for a generated procedure is G--nnn, where G means generated and nnn begins with 001 and increases by one for each generated paragraph name in top-down order.
  2. When USERNAME is selected, AMB creates paragraph names as follows:
    • AMB generates single dashes instead of double dashes.
    • AMB uses the current paragraph name, unless USERNAME is coded in a paragraph. Then it uses that paragraph name until the end of the paragraph.
  3. USERNAME paragraph applies only to names assigned for procedures generated as the direct result of code within the paragraph where USERNAME appears. When more than one USERNAME is coded in a paragraph, AMB assigns the first user-designated paragraph name until it is overrided by a second name in the AMB processing sequence.
  4. USERNAME does not appear in the generated code.
  5. Be careful to avoid any naming conflicts that can arise with USERNAME.