











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












1
2
4
5
7
RecordErrorMessage() takes an error code as an input argument and outputs an error message corresponding to the code. It‟s responsible for handling invalid codes. If t h e p r o g r a m i s o p e r a t i n g i n t e r a c t i v e l y , RecordErrorMessage() prints the message to the user. If it‟s operating in batch mode, RecordErrorMessage() logs the message to a message file. After outputting the message, RecordErrorMessage() returns a status variable indicating w h e t h e r i t s u c c e e d e d o r f a i l e d.
8
10
11
13
Example of a Header Comment
14
Example of PDL
16
Example of Expressing PDL Comments
as Code
17
Complete Routine
19
Complete Routine