| Note: | As of release 13.1, PROC IML supports the PRINTNOW statement, but with the caveat that it is treated as a null statement. This means that the statement does not cause ODS output to appear on the screen immediately. |
|---|
When an IMLPlus program generates ODS output, the output does not immediately appear on the screen in the output window. This is because IML Studio does not normally retrieve ODS output from the server until the IMLPlus program stops running.
To enable you to see ODS output immediately, IMLPlus provides the PRINTNOW statement. The PRINTNOW statement, which takes no parameters, causes IML Studio to display all pending ODS output.
Example:
do x = 1 to 100;
print x;
printnow;
end;
Note that adding a PRINTNOW statement inside a loop may significantly reduce the loop's execution speed. This is particularly true if IML Studio is configured to use the ODS HTML destination, which is the default setting.