ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Job Alert - messages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Job Alert - messages

    I am in the process of a system design specification to replace or existing Job Monitoring software. The Software currently looks at WRKACTJOB for specific jobs that have a message wait or jobs that were expected to have ended by a specific time. If an error condition has been found, a message is generated and sent to a middle-ware product called HPopenView for filtering before escalating a call to Alarm Point.

    Our focus is on the iSeries monitoring software but I was wondering if there was any method I could use to send message directly to a mobile via SMS, email or any other means other than having to go through different layers to get a message to our Out of Hours support team.

    RPGLE/CL

    Any suggestions?

    many thanks for reading

    huddy
    www.midlifegamers.co.uk

  • #2
    Re: Job Alert - messages

    you can download a command for send message waiting from my website that does this. it does require MMAIL (which is free at easy400.net) http://tommyholden.com in the downloads section.
    I'm not anti-social, I just don't like people -Tommy Holden

    Comment


    • #3
      Re: Job Alert - messages

      Thanks Tom, looking at that now
      www.midlifegamers.co.uk

      Comment


      • #4
        Re: Job Alert - messages

        Sorry if i sound to be an idiot, may I have compile instructions for the library? Thanks
        www.midlifegamers.co.uk

        Comment


        • #5
          Re: Job Alert - messages

          This could work for you also



          jamie
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment


          • #6
            Re: Job Alert - messages

            Hi Jamie, You're a star because your code is already live at our Bank. It's been live for 15 months now and is core to our over night batch runs

            It's what gave me the idea for this next project.

            I've been left to die in 400 world a bit.. so some of the latest stuff is above my head but not that much i can't pick things up.

            Once again many thanks
            www.midlifegamers.co.uk

            Comment


            • #7
              Re: Job Alert - messages

              Originally posted by Huddy View Post
              Sorry if i sound to be an idiot, may I have compile instructions for the library? Thanks
              the objects should already reside in the library if not then there should be a CL program source in the library you can compile and run to build the objects.
              I'm not anti-social, I just don't like people -Tommy Holden

              Comment


              • #8
                Re: Job Alert - messages

                Hi Tom,

                Ok I've installed MMAIL but I'm still having problems with your library. SNDMSGWAIT program won't compile. *7030 on SRCDTA.

                Also what does this actually do? Do you have any notes on the utility?

                Many thanks for your help.
                www.midlifegamers.co.uk

                Comment


                • #9
                  Re: Job Alert - messages

                  CRTSRCPF QTEMP/MMAIL then OVRDBF MMAIL QTEMP/MMAIL then compile. what the tool does is monitor the QSYSOPR message queue for messages in a MSGW status, sends an email to your cell phone (which your cell phone carrier will convert to SMS message)
                  I'm not anti-social, I just don't like people -Tommy Holden

                  Comment


                  • #10
                    Re: Job Alert - messages

                    Thanks Tom,

                    Ok that compiled. On running SNDMSGWAIT i get any error "The call to GETPOINTER ended in error" - not found in TTLIB??

                    I don't have a TTLIB, I guess that's yor deb library so I changed that to the same library where the user space resides.. I get the same error.

                    Sorry for the Qs
                    www.midlifegamers.co.uk

                    Comment


                    • #11
                      Re: Job Alert - messages

                      change TTLIB on this line to a library you have the user space in...:
                      Code:
                      dUserSpace        c                   Const( 'SNDMSGWAITTTLIB' )
                      I'm not anti-social, I just don't like people -Tommy Holden

                      Comment


                      • #12
                        Re: Job Alert - messages

                        Yep did that and recompiled. My library is SNDMSGWAIT.

                        I had to change ADDMSGNEP too.

                        Code:
                                                                                                                      
                           // Get the pointer to the user space and add the user space                                
                           //  entry                                                                                  
                           Pointer = GetPointer( 'SNDMSGWAITTTLIB' );                                                 
                           AddEntry( 'SNDMSGWAITTTLIB'
                        However, i still get an error

                        DUMP:
                        Code:
                        ILE RPG/400 FORMATTED DUMP                                       
                        Program Status Area:                                             
                        Procedure Name . . . . . . . . . . . . :   ADDMSGNEP             
                        Program Name . . . . . . . . . . . . . :   ADDMSGNEP             
                           Library . . . . . . . . . . . . . . :   SNDMSGWAIT            
                        Module Name. . . . . . . . . . . . . . :                         
                        Program Status . . . . . . . . . . . . :   00202                 
                                     The call to  ended in error (C G D F).              
                        Previous Status  . . . . . . . . . . . :   00000                 
                        Statement in Error . . . . . . . . . . :   00001000              
                        RPG Routine  . . . . . . . . . . . . . :   GETPOINT              
                        Number of Parameters . . . . . . . . . :                         
                        Message Type . . . . . . . . . . . . . :   CPF                   
                        Additional Message Info  . . . . . . . :   9801                  
                        Message Data . . . . . . . . . . . . . :                         
                                     Object SNDMSGWAIT in library SNDMSGWAIT not found.  
                        Status that caused RNX9001 . . . . . . :                         
                        Last File Used . . . . . . . . . . . . :
                        The Object SNDMSGWAIT is in library SNDMSGWAIT??

                        Code:
                                                      Work with Objects                                
                                                                                                       
                        Type options, press Enter.                                                     
                          2=Edit authority        3=Copy   4=Delete   5=Display authority   7=Rename   
                          8=Display description   13=Change description                                
                                                                                                       
                        Opt  Object      Type      Library     Attribute   Text                        
                             SNDMSGWAIT  *LIB      QSYS        PROD        Paul Hudson - Do not delete 
                             SNDMSGWAIT  *PGM      SNDMSGWAIT  RPGLE       Send Messages Waiting To Di 
                             SNDMSGWAIT  *CMD      SNDMSGWAIT              Start Send Message NEP Job
                        www.midlifegamers.co.uk

                        Comment


                        • #13
                          Re: Job Alert - messages

                          Nope - I can't get this working.



                          I'm pretty sure it's looking for the User Space SNDMSGWAIT as define in the program, but i can't find a user space by this name?
                          www.midlifegamers.co.uk

                          Comment


                          • #14
                            Re: Job Alert - messages

                            the user space object is not in the library...
                            I'm not anti-social, I just don't like people -Tommy Holden

                            Comment


                            • #15
                              Re: Job Alert - messages

                              Sorry how do I create it. I assumed it would be downloaded with the package ot the object would do it?
                              Thanks
                              www.midlifegamers.co.uk

                              Comment

                              Working...
                              X