Following is an example of an exit program tag that has been added to a generated HTML skeleton:
(_qPRODLIB/LOOKUP:WRK:(_v0345):RTN)
This tag causes the server to call program LOOKUP in library PRODLIB passing three parameters: WRK, the value of the screen at offset 345, and RTN.
Program LOOKUP can use these values to perform whatever processing it chooses and, if it returns a value, the following line (or HLL-specific equivalent) is coded in it:
SNDPGMMSG MSGID(W2U0001) MSGF(YW2EMSG) MSGDTA(&MSGDTA) TOPGMQ(*PRV) TOMSGQ(*TOPGMQ) MSGTYPE(*INFO)
Once the server has called the specified exit program, it attempts to receive message W2U0001. If it receives this message, it displays the contents of the message on the screen in place of the exit program tag; otherwise, the tag does not display.
The value returned from the exit program to the Web Option server can be any text string up to 254 characters. Depending on the processing performed by the exit program, it might be a value from a database, or a simple completion message or even an HTML string.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |