Integration Server 10.11 | Dynamic Server Pages and Output Templates Developer's Guide | Using Dynamic Server Pages (DSPs) | Using the DSP Tags | Extracting Results from a Document | Using the %loop% Tag to Examine the Current Scope
 
Using the %loop% Tag to Examine the Current Scope
If you use the –struct option without specifying the name of a document, the loop executes once for each element in the current scope. During testing and debugging, you may want to use this technique to examine the variables and their values at a particular point in the DSP. The following example shows the code you would use to display the name of each key and its contents in the current scope.
.
.
.

<P>
%loop -struct%
%value $key% %value%<BR>
%endloop%
</P>
.
.
.