Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Sending a Program Message in RPG

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

  • Sending a Program Message in RPG

    ** This thread discusses the article: Sending a Program Message in RPG **
    ** This thread discusses the Content article: Sending a Program Message in RPG0

  • #2
    Sending a Program Message in RPG

    ** This thread discusses the article: Sending a Program Message in RPG **
    Can you really put () after the %Parms as in %Parms()? If so, how long has this syntax been allowed? And why is the data structure "msgf" defined as 21A instead of 20A? Why even hard code the length? Wouldn't the compiler figure out the length from the two 10A sub-fields? Thanks. Chris

    Comment


    • #3
      Sending a Program Message in RPG

      ** This thread discusses the article: Sending a Program Message in RPG **
      Parens have been supported since V5.1 when /Free was introduced. The msgf variable/DS is 21 because I pulled this code from RPG xTool which supports qualified syntax of "LIB/OBJ" or
      "OBJ LIB "
      . This sample only uses the later.

      Comment


      • #4
        Sending a Program Message in RPG

        ** This thread discusses the article: Sending a Program Message in RPG **
        ... Interesting about %Parms() (with parentheses). The IBM Websphere RPG PDF's don't mention this and the PDF code examples just use %Parms. I learn something new everyday! Thanks. Chris

        Comment


        • #5
          Sending a Program Message in RPG

          ** This thread discusses the article: Sending a Program Message in RPG **
          You can't define special values like *STATUS, but you could define named constants in your prototype file for any special values you wanted to support. sndmsg('Searching ...' : msgtype_status);

          Comment


          • #6
            Sending a Program Message in RPG

            ** This thread discusses the article: Sending a Program Message in RPG **
            Is the API QMHSNDPM work only for interactive or does it also work in batch?

            Comment

            Working...
            X