ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Scan text on Field TEXT of file *MSGF

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

  • Scan text on Field TEXT of file *MSGF

    Hello everybody

    I want find a MSGID in a MSGF File but i don't know the MSGID. Big problem , there are 3000 messages. How can i scan the field TEXT with argument in a file *MSGF ? I don't find command or API
    Itis possible ?
    Thanks for your response and sorry for my bad english

  • #2
    Re: Scan text on Field TEXT of file *MSGF

    try to DMPOBJ on the message file

    then goto outq QEZDEBUG

    and search for a text string


    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


    • #3
      Re: Scan text on Field TEXT of file *MSGF

      I was going to suggest a DSPMSGD, which can generate a spool file....but Jamie was quicker off the mark!

      Sure that there will be an API option as well....

      Comment


      • #4
        Re: Scan text on Field TEXT of file *MSGF

        i do the DSPMSGD to spooled file then do a find in the spooled file. DMPOBJ has alot of clutter i tend to avoid it's rather nasty.
        I'm not anti-social, I just don't like people -Tommy Holden

        Comment


        • #5
          Re: Scan text on Field TEXT of file *MSGF

          search for a utility called scan message file (scnmsgf). I use it all the time to find the msg I need.

          From our friend Bradley V. Stone @ http://www.bvstools.com/
          Attached Files
          Bill
          "A good friend will bail you out of jail,
          A true friend would be sitting beside you saying,
          'Wow, that was fun.'"

          Comment


          • #6
            Re: Scan text on Field TEXT of file *MSGF

            tom & andrew...Your idea much cleaner than mine......

            I like to over complicate my day

            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


            • #7
              Re: Scan text on Field TEXT of file *MSGF

              Hi Jack:

              got this off the web somewhere ...... could be the one bill is refering to .

              I use it to extract menus but it should be ok for message files......If not you can always get your money back

              This is the file layout:

              Code:
              *************** Beginning of data *****
                   A          R PFREC                
                   A            LIB           10     
                   A            MNU           10     
                   A            MSGID          7     
                   A            MSGSEV         2  0  
                   A            MSGFIRST     132     
                   A            MSGSECND    3000
              to run it

              call msgfprc parm(msgfile msgfilelib)
              Attached Files
              The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

              Comment


              • #8
                Re: Scan text on Field TEXT of file *MSGF

                Gee I must have recorded keys on my notebook. I could have sworn I didn't post and zip file....LOL

                I have that zip on my notebook and install it on any/all client machines I work on, on the QT if needed.

                PS: Thnx Jamie
                Bill
                "A good friend will bail you out of jail,
                A true friend would be sitting beside you saying,
                'Wow, that was fun.'"

                Comment


                • #9
                  Re: Scan text on Field TEXT of file *MSGF

                  Thank you very much, Mister BillW for your respons
                  Your command SCNMSGF is exactly my request.

                  Thanks to Mister Jamief , Andrew K , TomHolden and GLS400

                  Comment

                  Working...
                  X