I've been doing a lot of Web services lately. I frequently use macro variables to do things like count the number of records extracted in a loop. I need to return this count as an output. Currently the only way I have found to do this is to insert the contents of the macro variable into a field and then extract the contents with an <extract> statement.
Another example is detecting error conditions for which there is no suitable information on the screen to indicate the error. In these cases I use a macro variable to contain the error condition, but I must find a field on the screen into which I insert the value then <extract> it. Lately, I've come across situations where there is not an input field into which I can insert the contents of the macro variable. Either the field is to small, or there is no input field at all.
What I need is a technique or capability of doing and <extract> FROM a global variable. Does anyone know how to do this?