LoadMessageInfo (XmlDoc subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 14: Line 14:
==Usage notes==
==Usage notes==
==Examples==
==Examples==
The following request:
<p class="code">begin
%d    is object xmlDoc auto new
%d:loadMessageInfo('M204.084*')
%d:print
end
</p>
Produces:
<p class="output"><nowiki><messages M204Version="7.7.0F">
  <msg num="M204.0840" class="E" auditType="ER" count="yes" retcodeb="4">
      Disk I/O error while formatting
  </msg>
  <msg num="M204.0841" class="E" auditType="ER" count="yes" retcodeb="4">
      Bug .. CCAGRP already in directory
  </msg>
  <msg num="M204.0842" class="E" auditType="MS" count="no" retcodeb="4">
      CREATEG command rejected
  </msg>
  <msg num="M204.0843" class="I" auditType="MS" term="no" opr="yes" count="no">
      <sub type="C"/>
  </msg>
  <msg num="M204.0844" class="I" auditType="MS" opr="yes" count="no">
      Recovery is now complete
  </msg>
  <msg num="M204.0845" class="E" auditType="ER" count="yes" retcodeb="4">
      Updates not allowed during recovery
  </msg>
  <msg num="M204.0846" class="E" auditType="MS" count="no" retcodeb="4">
      Group is in use
  </msg>
  <msg num="M204.0847" class="E" auditType="ER" count="yes" retcodeb="4">
      Close group before deleting
  </msg>
  <msg num="M204.0848" class="I" auditType="MS" count="no">
      Perm group deleted:
      <sub type="suffix" desc="name"/>
  </msg>
  <msg num="M204.0849" class="E" auditType="ER" count="yes" retcodeb="4">
      Group not found:
      <sub type="suffix" desc="name"/>
  </msg>
</messages>
                                             
</nowiki></p>
==See also==
==See also==
<ul>
<ul>

Revision as of 01:39, 14 July 2016

Load message info into this XmlDoc (XmlDoc class)


This page is under construction.

Syntax

doc:LoadMessageInfo[( [string])]

Syntax terms

doc An XmlDoc object, to which elements are added corresponding to the selected messages.
string A wildcard pattern to select the messages to place into the XmlDoc.

Usage notes

Examples

The following request:

begin %d is object xmlDoc auto new %d:loadMessageInfo('M204.084*') %d:print end

Produces:

<messages M204Version="7.7.0F"> <msg num="M204.0840" class="E" auditType="ER" count="yes" retcodeb="4"> Disk I/O error while formatting </msg> <msg num="M204.0841" class="E" auditType="ER" count="yes" retcodeb="4"> Bug .. CCAGRP already in directory </msg> <msg num="M204.0842" class="E" auditType="MS" count="no" retcodeb="4"> CREATEG command rejected </msg> <msg num="M204.0843" class="I" auditType="MS" term="no" opr="yes" count="no"> <sub type="C"/> </msg> <msg num="M204.0844" class="I" auditType="MS" opr="yes" count="no"> Recovery is now complete </msg> <msg num="M204.0845" class="E" auditType="ER" count="yes" retcodeb="4"> Updates not allowed during recovery </msg> <msg num="M204.0846" class="E" auditType="MS" count="no" retcodeb="4"> Group is in use </msg> <msg num="M204.0847" class="E" auditType="ER" count="yes" retcodeb="4"> Close group before deleting </msg> <msg num="M204.0848" class="I" auditType="MS" count="no"> Perm group deleted: <sub type="suffix" desc="name"/> </msg> <msg num="M204.0849" class="E" auditType="ER" count="yes" retcodeb="4"> Group not found: <sub type="suffix" desc="name"/> </msg> </messages>

See also

  • LoadMsgctl, which produces an XmlDoc with the same attributes for the <msg> elements.