Difference between revisions of "QMHRTVM PCML"

From MidrangeWiki
Jump to: navigation, search
m
m (Undo revision 10996 by David (Talk))
 
Line 3: Line 3:
 
[[Category:Java]]
 
[[Category:Java]]
 
The following PCML can be used in a [[Java]] program as a <code>ProgramCallDocument</code> to invoke the [[QMHRTVM]] api for message retrieval.
 
The following PCML can be used in a [[Java]] program as a <code>ProgramCallDocument</code> to invoke the [[QMHRTVM]] api for message retrieval.
<syntaxhighlight lang="xml">
+
<pre>
 
 
 
<pcml version="3.0">
 
<pcml version="3.0">
  
Line 41: Line 40:
  
 
</pcml>
 
</pcml>
</syntaxhighlight>
+
</pre>

Latest revision as of 15:43, 8 July 2010

The following PCML can be used in a Java program as a ProgramCallDocument to invoke the QMHRTVM api for message retrieval.

<pcml version="3.0">

	<program name="qmhrtvm" path="/QSYS.lib/QMHRTVM.pgm">
		<struct name="msginfo" usage="output">
			<data name="bytesReturned" type="int" length="4" />
			<data name="bytesAvailable" type="int" length="4" />
			<data name="lengthOfMessageReturned" type="int" length="4" />
			<data name="lengthOfMessageAvail" type="int" length="4" />
			<data name="lengthOfHelpReturned" type="int" length="4" />
			<data name="lengthOfHelpAvail" type="int" length="4" />
			<data name="message" type="char"
				length="lengthOfMessageAvail" />
			<data name="help" type="char" length="lengthOfHelpAvail" />
		</struct>

		<data name="receiverLength" type="int" length="4" usage="input"
			init="4096" />
		<data name="formatName" type="char" length="8" usage="input"
			init="RTVM0100" />
		<data name="msgid" type="char" length="7" usage="input" />
		<struct name="msgfile" usage="input" >
			<data name="name" type="char" length="10"/>
			<data name="library" type="char" length="10"/>
		</struct>
		<data name="msgdata" type="char" length="msgdataLength"
			usage="input" />
		<data name="msgdataLength" type="int" length="4" usage="input" />
		<data name="replaceValues" type="char" length="10" usage="input"
			init="*YES" />
		<data name="returnFormatChars" type="char" length="10"
			usage="input" init="*YES" />
		<data name="errorCode" type="char" length="8" usage="input"
			init="" />
	</program>

</pcml>