The ACCEPT and DISPLAY verbs have ANSI formats that provide strict compatibility with the ANSI definition of these verbs. ACCEPT and DISPLAY also have expanded ACUCOBOL-GT formats that are not ANSI-compliant but offer more functionality. The ANSI definition is quite limited in that it does not provide any screen control facilities. However, these verbs can be useful when you are:
The ANSI formats of ACCEPT and DISPLAY are subsets of the extended ACUCOBOL-GT formats. Thus, the compiler needs guidance in determining which format is desired. This is important because different formats result in different behavior. When examining an ACCEPT or DISPLAY statement, the compiler applies the following rules, in order: