I am having issues with outtrap. I am using the following code to trap dsnenq command. Trapping is not working because it lists the DSNENQ command output and if you list var.0 command it is zero. Any ideas?
do i=1 to info.0
dsn=strip(substr(info.i,1,46),t)
x = OUTTRAP("var.",'*',"CONCAT")
"DSNENQ '"dsn"'"
y = OUTTRAP('OFF')
end
do i=1 to info.0
dsn=strip(substr(info.i,1,46),t)
x = OUTTRAP("var.",'*',"CONCAT")
"DSNENQ '"dsn"'"
y = OUTTRAP('OFF')
end