Programming Interface Information
Programming Interface Information

Implementing Coding Techniques

Use the same coding rules to ensure maintainability that you would use if coding one of your applications:
  • Divide the routine into logical sections, one for each significant data classification, such as TSO, database, and so on.
  • Keep a change log in the beginning of each ACS routine that includes a description of the coding change, the initials of the person making the change, and the change date.
  • Create meaningful names for FILTLIST variables. A FILTLIST variable can be 31 characters long. Use the underscore character to make the variable more readable.
  • Create meaningful names for classes and groups. The name should describe the type of service rather than the data classification.
  • When you code a SELECT, always code an OTHERWISE.
  • When you make a class or group assignment, code an EXIT statement.
  • Use SELECT/WHEN in preference to the IF/THEN structure to enhance reliability and maintainability of the routine.
  • Use comments freely throughout the routine to relate the ACS routine design objectives to the code that implements the design.
End Programming Interface Information
End Programming Interface Information