After compiling and storing a subroutine, you can test it in a report request. In order to access the subroutine, you need to issue the ALLOCATE command for z/OS.
If an error occurs during testing, check to see if the error is in the request or in the subroutine.
You can determine the location of an error with the following:
If the request executes the dummy subroutine normally, the error is in your subroutine. If the request still generates an error, the error is in the request.