On 9/21/2012 12:03 PM, Frank M. Ramaekers wrote:
> That's why I do a SET MSG IUCV before the MAILIT.  Should queue it?

You have to establish the IUCV connection with STARMSG before messages
can start being routed to that connection.  STARMSG can issue the
command for you once it starts up:

  mailit = ,
  "EXEC MAILIT TO("MailTo")",
      "FROMNAME(TMK z10 VM System EREP)",
      "LOG",
      "TITLE(Test EMail)",
      "TEXT(Body of Email)",

  "PIPE (endchar ?)",
      "|  STARMSG *MSG" mailit ,
      "|  CONSOLE",
  "?      LITERAL +15",
      "|  DELAY",
      "|  PIPESTOP"

If you have a list of commands you want to collect responses from, they
can go on the input to STARMSG.  Then STARMSG will terminate as soon as
it finishes collecting messages at EOF, so you'll want to make sure to
delay EOF for as long as you need to after the last command:

  "PIPE (endchar ?)",
      "|  stem command.",  /* your list of commands here */
      "|  dup: fanout",
      "|  hold: fanin",
      "|  STARMSG *MSG",
      "|  CONSOLE",
  "?      dup:",
      "|  hole",
      "|  append LITERAL +15",
      "|  DELAY",
      "|  hole",
      "|  hold:"

¬R

Reply via email to