Shawn, I don't know if you have resolved this yet. From your
code fragment, the DBGET MODE parameter is missing the macro terminator(#).
This causes the macro expansion to be off by one parameter.
Been there...done this....
>
> STOP RUN.
> %DBGET(BR-DB#,DS-STATE-M#,MODE5,BR-STATUS-AREA#,STATE-M#
> ,WS-ARG#). ^
OOPS!
Gary L. Biggs, N5TTO
[log in to unmask]
Interex SIG Allbase Chair
"Abandon all hope, Ye who Inter(net) here" --
Dante, over the portal(router) to Hell