× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Rather than pulling the messages from QSYSOPR and parsing the result set,
you may want to consider message monitoring where the system can notify you
that a given message has been sent to a given queue (or queues). The system
exit point documentation for this can be found at
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/xwchevnt.htm
.
Vendor addition: If you prefer a nice, simple, cheap set of CL commands to
do enable this check out my Message Monitor command set documented at
http://www.powercl.com/xcl/19/125.

Bruce

On Thu, Oct 27, 2011 at 3:32 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:

On 27-Oct-2011 11:55 , fbocch2595@xxxxxxx wrote:

Hi Folks, when I run this code;

<<SNIPped CLP source>>

I'm getting this after the code goes to DLY again;

3200 - DLTSPLF FILE(QPDSPMSG) SPLNBR(*LAST)
3400 - RCVF DEV(*FILE) RCDFMT(*FILE) WAIT(*YES) OPNID(*NONE)
File name is T2853PF. */
2400 - DLTF FILE(QTEMP/T2853PF)
Cannot do operation on file T2853PF in QTEMP.

What do I have to do to be able to DLTF the file?


Close the file. A database file can not be deleted while a database
file member is open. For a CLP, that means ensuring the CPF0864 gets
signaled.

As to the code... Ugh! Best to eliminate the indirection, and code
directly to what is desired; i.e. using RCVMSG MSGQ(QSYSOPR) to locate
the message-of-interest in the queue. Perhaps instead of trying to get
this CLP to function as expected, describe what task is intended to be
accomplished, and ask how best to code to automate that task.

Regards, Chuck
--
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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.