John,
What was the TOPGMQ parameter on your SNDPGMMSG command? Calling QCMDEXEC has lengthened the program stack so the default TOPGMQ parameter needs to be adjusted upwards by one. I suspect the validity check program sent the escape message to the validity check program's own message queue. You could verify this by looking in the job log and finding what program did receive the escape message. The SNDPGMMSG could be fixed but using the API will also work.
Paul Morgan
Principal Programmer Analyst
IT Supply Chain/Replenishment
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Allen
Sent: Thursday, February 09, 2012 12:52 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Can a Command Validity Check program be an RPG ILE program
I was planning on doing that but I wanted to write a quick test program to
see if the concept worked first.
Well apparently not so quick.
I will replace the QCMDEXEC in my test pgm with the API and see if I can get
it to work
Thanks
John
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Mark Walter
Sent: Thursday, February 09, 2012 10:55 AM
To: Midrange Systems Technical Discussion
Subject: RE: Can a Command Validity Check program be an RPG ILE program
Use the QMHSNDPM API.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Allen
Sent: Thursday, February 09, 2012 10:26 AM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: Can a Command Validity Check program be an RPG ILE program
Can a Command Validity Check program be an RPG ILE program
If yes, how is the SNDPGMMSG supposed to be handled in the RPG?
In my test I use QCMDEXEC to execute a SNDPGMMSG *ESCAPE parms and it runs
right through and continues on processing the command
I am just now trying to learn this process so bear with me if this is a
stupid question J.
Thanks
John
--
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,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
--
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,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.