Dec 27, 2007 #1 rajesh082 Programmer Joined Dec 18, 2007 Messages 38 Location DK I am calling a External function as below:- Char = #rdparms(ENVI CHA Instltr) Pull MSG1 In the #rdparms I am setting the value of MSG1. The problem is while executing the Exec, I have to hit an extra "Enter" to pull the MSG1. How can I avoid this?
I am calling a External function as below:- Char = #rdparms(ENVI CHA Instltr) Pull MSG1 In the #rdparms I am setting the value of MSG1. The problem is while executing the Exec, I have to hit an extra "Enter" to pull the MSG1. How can I avoid this?
Dec 31, 2007 #2 rexxhead Programmer Joined Jul 31, 2002 Messages 611 Location US What does #rdparms look like? In any case, I would do it this way: Code: address TSO "NEWSTACK" Char = #rdparms(ENVI CHA Instltr) do queued() Pull MSG1 end /* queued */ "DELSTACK" You only expect one line to come back, right? If #rdparms sends back n lines, this discards n-1 lines and keeps one. Frank Clarke Support the Troops: -- Bring them home. http://www.RonPaul2008.com Upvote 0 Downvote
What does #rdparms look like? In any case, I would do it this way: Code: address TSO "NEWSTACK" Char = #rdparms(ENVI CHA Instltr) do queued() Pull MSG1 end /* queued */ "DELSTACK" You only expect one line to come back, right? If #rdparms sends back n lines, this discards n-1 lines and keeps one. Frank Clarke Support the Troops: -- Bring them home. http://www.RonPaul2008.com