Difference between revisions of "QMHRTVM PCML"

From MidrangeWiki
Jump to: navigation, search
 
m (Undo revision 10996 by David (Talk))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:PCML]]
+
[[Category:System_API_PCML]]
 
[[Category:API]]
 
[[Category:API]]
 
[[Category:Java]]
 
[[Category:Java]]

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>