QMHRTVM PCML

From MidrangeWiki
Revision as of 10:43, 8 July 2010 by David (talk | contribs) (Undo revision 10996 by David (Talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>