The following general points should be observed about the destination of execution messages:
For example, suppose a command calls a command-processing program, which in turn calls several subprograms.
Diagram of Destinations for Messages:

If the program is a request-processing program, you should ensure that a copy of the request is placed in the log so that the retrieve (F9) facility of other programs can be used to retrieve it.
Functions which process a number of items should return a count of the number of objects successfully processed as their completion message. For example:
&1 Objects moved: &2 added, &3 replaced. &4 not moved.
Long running jobs should send status messages to report the job’s progress. For instance, ‘Records being copied to file QTXTSRC’, ‘Work space is being loaded’, ‘Entire system is being backed up’. This can be done as follows:

| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |