× 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.


  • Subject: Re:(Bruce Vining) How to check jobs which enter SUBSYSTEM
  • From: "Sanjiv Hati" <hattys@xxxxxxxxxxx>
  • Date: Sat, 13 Feb 1999 06:00:11 PST

Hi

I created a data queue named 'NOTIFY' as described in the Job 
Notification Exit Point section. Then I registered (command WRKREGINF) 
the data queue using JN exit point.

But I am receiving empty data from the data queue.

Here is the brief description of my approach -

Data queue registration info -

Exit point  . . . . . . . . . . . . . . . :   QIBM_QWT_JOBNOTIFY
Exit point format . . . . . . . . . . . . :   NTFY0100          
                                                                
Exit program number . . . . . . . . . . . :   1                 
Exit program  . . . . . . . . . . . . . . :   NOTIFY            
  Library . . . . . . . . . . . . . . . . :     TLIBSKH         
Text description  . . . . . . . . . . . . :   *BLANK            
                                                                
Exit program data CCSID . . . . . . . . . :   37                
Exit program data length  . . . . . . . . :   24                
Exit program data . . . . . . . . . . . . :                     
0001QINTER    QSYS                                             

Just the above line is the program data.

CL Program - I have given 20 sec wait time to receive the data. In the 
mean time, I am performing few interactive jobs in another session for 
testing.

PGM                                                              
DCLF DSP01                                                       
DCL &ENTLEN  *DEC (5 0) VALUE(74)                                
DCL &ENTRY   *CHAR 74                                            
DCL &KEYLEN  *DEC (3 0) VALUE(4)                                 
DCL &KEY     *CHAR 4 VALUE('0001')                               
DCL &WAIT    *DEC (5 0) VALUE(20)                                
DCL &ORDER   *CHAR 2 VALUE('EQ')                                 
DCL &SNDRLEN *DEC (3 0) VALUE(10)                                
DCL &SNDR    *CHAR 10                                            
/****************************************/                       
CALL PGM(QRCVDTAQ) PARM('NOTIFY' 'TLIBSKH' &ENTLEN &ENTRY &WAIT +
&ORDER &KEYLEN &KEY &SNDRLEN &SNDR)                              
CHGVAR &DSPENT &ENTRY                                            
SNDRCVF RCDFMT(JOBNFY)                                           
ENDPGM
--------
I found &ENTRY empty
What could be the problem?

Thank you in advance
************************************************
                       
Bruce wrote

The Job Notification Exit Point (described in the Work Management Exit
Programs chapter of the System API Reference) allows you to be notified, 
by subsystem, whenever a job starts, ends, or is placed on a *JOBQ. The 
exit is flexible enough so that you can ask for only "starts" if that is 
your desire.

The notification is by way of a message being sent to a *DTAQ which 
gives ...


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.