Tpsec07 – HP Integrity NonStop J-Series User Manual
Page 152
SECTION 7
MODIFYING A GENERATED APPLICATION
You can tailor an application further by modifying the SCREEN
COBOL source code. To modify the source code, you must:
1. Identify the name of a file to which ENABLE writes the SCREEN
COBOL source code by supplying a value for the SCOBOLSOURCE
attribute when you generate an application.
2. After making the modifications to the file, compile the
source code.
If you want ENABLE to write the SCREEN COBOL source to a file
named "srcfile," you can identify this file by entering the
following command:
SET APPL SCOBOLSOURCE srcfile !
The following list briefly describes some modifications that you
can make to the SCREEN COBOL source code.
• Define acceptable values for an input screen field. You can
modify the Screen Section of the generated SCREEN COBOL source
code by including a MUST BE clause with the appropriate screen
field.
• Indicate that lowercase characters are to be translated to
uppercase either when they are displayed on the screen or
when they are inserted in a data base file. To do this,
include the UPSHIFT clause with the appropriate screen field.
7-1