If you want to get the output of a CP command in a REXX program use EXECIO.

Dave Hansen wrote:
Hello,

   I have an EXEC that I wish to use to TRANS the console files from another 
userid for a given period of time.  I would like to check if the userid
given the EXEC actually exists.
   I looked at the CMS QUERY which does stack the results, but userid is not 
part of the CMS query.   The CP Query does let me know about the user,
but doesn't stack the results.
   The CP MSG (and SMSG) & IND USER don't care about the userid, and an invalid 
userid is always NOT LOGGED ON.
    It looks like I almost need to spool and close my console to get the 
results of my CP Query.  I suppose I could just issue the TRANS against an
invalid userid and let it fail.
    Any thoughts from the group?

      Thank you,  Dave Hansen
                              Sr. Systems Programmer
                              Hennepin County


--
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008

Reply via email to