On Tue, 21 Jun 2011 07:55:11 -0500, Walt Farrell wrote: > >Yes, they can all be captured. The only issue may be that if the command >doesn't properly issue the responses then you may not be able to tell that >the response is for the command you issued. But once you (a program) sets up >a console, you can capture anything that appears on that console. > Thanks.
>For properly-written command processors the program can supply a response >token on the command when it issues the MGCRE macro, and the command >processor will include that token on the command response to the command. > If the response contains multiple lines, is there a technique to recognize the last line; some sort of a delimiter line? Is there a convention guaranteeing uniqueness of tokens, or, better, a service to generate unique tokens? >If the command processor does not support use of the response token, then >the program has to capture everything coming to the console and find the >responses among all the other messages the console may be seeing. > All in all, the basic design is deficient; haphazard. The calling program should be required to supply a token, MGCRE should enforce uniqueness, and command processors should be required to support tokens. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html