As well as editing files on the mainframe, you can use
Enterprise Developer for z Systems to compile applications directly on the mainframe.
Before you begin, ensure the ZBNKPRT1 program is still open, remove the ) on the WS-FIRST-REC data item on line 008100, and
then save the code. This saves the changes on the mainframe.
Since a new change was made, another background parse is performed and errors noted in the margin. As you hover the mouse
over the red markers, the syntax error for that line is displayed.
Even though the errors in the source are clearly displayed from the background parse, you should perform a syntax check of
the COBOL program with the Enterprise COBOL dialect set, on the mainframe. You can use the Workflow Manager to model remote
compilation for languages other than COBOL too.
-
In
Application Explorer view, right-click the
ZBNKPRT1 member and choose
Remote Syntax Check.
A dialog box appears, prompting you for additional compiler directives. This allows you to specify additional directives for
the mainframe compiler, and the CICS and DB2 preprocessors.
-
Click
OK.
The code is compiled on the mainframe, using the mainframe compiler. If any syntax errors are detected, they are displayed
in the
Error Feedback view, shown below:
-
To go directly to the error you created within the source file, double-click the syntax error with ID IGYDS1168.
You are prompted to associate the error with the source member.
-
Click
Yes.
The syntax error is shown in the editor, along with the error code. This allows you to locate and fix errors quickly.
-
Correct the error, save, then repeat step 1.
The code now compiles cleanly.