Why not just run the VMSECURE module from the COMMAND stage? It knows how to communicate with the VMSECURE machine, displays the messages and sets the return code, both of which COMMAND will capture.
For example... 'pipe (stagesep ! endchar ?)', ' Var vmcmd', /* assumed to be "vmsedure...." */ '! cc:Command', '! rr:Fanin', '! >> GTPRIV REPT A', '? cc:', /* return code comes here */ '! Specs /Return code was/ 4 w1 nw', '! rr:' /* append to output */ -- Mike Harding z/VM System Support [email protected] [email protected] (925) 672-3922 | (925) 672-4403 (h) (925) 323-2070 (m) /sp CMSTSO Pipelines Discussion List <[email protected]> wrote on 01/10/2018 02:28:33 PM: > From: Miguel Soltero Diaz <[email protected]> > To: [email protected] > Date: 01/10/2018 02:29 PM > Subject: getting the RC from third party commands > Sent by: CMSTSO Pipelines Discussion List <[email protected]> > > hello guys, > I am trying to execute a VMSECURE command and capture the return > code of that command. So far, I am able to get the results from the > command but not the rc. > Is there a way to capture the rc from that command? > is this something I should be talking to CA instead? > > This is the way I am executing the command using pipes. > 'pipe (stagesep ! endchar ?)', > '! VAR VMCMD !STARMSG *MSGALL', > '! >> GTPRIV REPT A', > > When the command is executed I get > whatever results from the command and ... > Ready(00024); T=0.01/0.01 14:18:19 > > > Ready(00024) is what I am after... and so far unable to get to it. > > is there a way to get it? > > Thx >
