Thanks - that seems to work for me! It would seem that there would be a (somewhat) more straightforward method, but if they don't change the offset, I'm fine! Thanks to all who responded. David Wakser
________________________________ From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On Behalf Of Huegel, Thomas Sent: Wednesday, December 26, 2007 3:56 PM To: IBMVM@LISTSERV.UARK.EDU Subject: Re: Checking how invoked Not so bad.. here is something I use, I think it works everytime.. PARSE UPPER SOURCE . . . . . RXNAME . 'PIPE STORAGE 740 8 | XLATE 1-* UPPER | VAR ABC' IF ABC = STRIP(RXNAME) THEN SAY ' ENTERED ON COMMAND LINE' NOTE: You want to get the command line from x'740' not 2A0 as I may have indicated.