For explanations of the keywords you can use with OPSGETVL, see OPSGETVL Command Processor in the chapter “POI Command Processors.”
Example: OPSGETVL Code
Consider the following code sample:
globalx.0=1
globalx.1='test1234567890abcdefghij'
globalx.2='abcdefghijklmnopqrvwxyz12345'
globalx.3='zyxwvrqponmlkjihgfedcba12345'
a = OPSGETVL('globalx.*')
if opsrc ^= 0 & opsrc ^= 8 then do
say queued()
say 'opsrc='||opsrc
exit
end
if opsrc = 8 then
say 'Some variable names not returned due to MAX limit.'
say 'a =' a
do i = 1 to a
say getvl.i
end
When executed, the above code sample produces the following output:
a = 4 GLOBALX.0 GLOBALX.1 GLOBALX.2 GLOBALX.3
For additional examples that illustrate how you can use OPSGETVL, see OPSGETVL Command Processor in the chapter “POI Command Processors.”
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |