As well as editing files on the mainframe, you can use
Enterprise Developer for IBM zEnterprise to compile applications directly on the mainframe.
Before you begin, open the UTWOSCMP Assembler member of the .ASM PDS in the Editor. Change "CSECT" on Line 27 to be "CXECT" and then save the code. This saves the changes on the mainframe.
-
In
Team Developer tree view, right-click the
UTWOSCMP member and choose
Remote Syntax Check.
A dialog box appears, prompting you for additional compiler directives.
-
Click
OK.
The code is compiled on the mainframe, using the mainframe Assembler. If any syntax errors are detected, they are displayed in the
Team Developer Error List pane, shown below:
-
To go directly to the error you created within the source file, double-click the syntax error with ID
ASMA057E.
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.