Now you get to play with one of the most powerful and unique features of the Remote System Explorer - the Program Verifier. Before you compile your code on an iSeries, you can make certain that there are no errors by invoking the Program Verifier. The verifier checks for semantic (compile) errors on your workstation so that you can guarantee a clean compile on the iSeries. Think of the host cycles you'll save. It is especially handy when you are writing code but you are disconnected from an iSeries. You can do this because Remote System Explorer ported the parsing and checking code from the iSeries system compilers to the workstation. The iSeries Error List view lists the errors that are found and their severity, inserts the error messages directly into the source and helps you to navigate between the errors.
To invoke the verifier:
You will need to open the COBOL source file named PAYROLLC2 to complete this verify step.
After a moment the verifier will display an iSeries Error List below the
Editor window.
The error list shows you:
Fixing errors
Next you will fix the errors in your source.
To fix an error in your source go to the error list:
You are automatically brought back into the Editor window to the line where the error occurred. The error is caused by EMPNO not being uniquely defined. Go to line 302 where EMPNO is defined. The variable EMPNO should be EMPNO OF EMPSEL-I.
The next error is LNC1326.
Make the appropriate change on line 402.
This error is because the array was declared with 4 elements. Go to line 606.
The next errors are LNC0407. You can ignore these errors as they are severity 20.
All severity 30 errors and above are now fixed. You can filter out
different severities by using the filter menu.
Saving the source member
Now before you loose any of your changes, it's a good idea to save them. Make sure the member is selected. You then verify the source again to make sure that all the errors are fixed.
You can save the member using one of these ways:
Changes are uploaded to the iSeries.
Everything should be ok. You should see only severity 20 messages. You are ready to compile the program.
You have verified your source and fixed any errors and now you are ready to begin Exercise 4.2: Compiling source remotely.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.