Have you tried the QMHRTVRQ (Retrieve Request Message) api?
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tim Bronski
Sent: Wednesday, February 27, 2013 1:41 AM
To: Midrange Systems Technical Discussion
Subject: Retrieving request message (the calling command)
I'm trying to retrieve the actual command string of the the command that was used to invoke my program - the CPP. Using QMHRCVPM or RCVMSG I can retrieve the request message with the command string in the message data but ONLY if the command is entered on a command line. If the command was invoked from a CLP there's nothing there. I've looked up and down the stack. Its obviously around somewhere and I could have sworn I've done this before. Anyone know what the difference is between the way a command is processed in these two scenarios and where I might find my command?
Need secure FTP? Forget PASE...get your FREE sFTP here
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact