I have two question,
first one, in the log I found the command rc = -3, I don't know how to conform the reason.
second, how to set the command response message to a variable, I have tried the OUTTRAP instrcution but it just can get the TSO command message.
49 *-* address mvs 'D U,,,'unitadd
>L> "D U,,,"
>V> "9001"
>O> "D U,,,9001"
+++ RC(-3) +++
>L> "D U,,,"
>V> "9001"
>O> "D U,,,9001"
+++ RC(-3) +++
Code:
du_command:
unitadd = 9001
address mvs 'D U,,,'unitadd
if rc \= 0 then do
subrc = rc
say "bad Display unit cmd, rc = "subrc
subrc = 16
signal end_du_command
end
else do
say 'the message is '
end
end_du_command:
return subrc
unitadd = 9001
address mvs 'D U,,,'unitadd
if rc \= 0 then do
subrc = rc
say "bad Display unit cmd, rc = "subrc
subrc = 16
signal end_du_command
end
else do
say 'the message is '
end
end_du_command:
return subrc
Could you give me some advise, Thanks .