<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=IFWRITE_%28HLI_function%29</id>
	<title>IFWRITE (HLI function) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=IFWRITE_%28HLI_function%29"/>
	<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;action=history"/>
	<updated>2026-06-02T17:33:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;diff=93230&amp;oldid=prev</id>
		<title>ELowell at 19:42, 13 July 2016</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;diff=93230&amp;oldid=prev"/>
		<updated>2016-07-13T19:42:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:42, 13 July 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The conventions used on this page are described in [[HLI: Function &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;call list&lt;/del&gt;#Function call notation conventions|Function call notation conventions]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The conventions used on this page are described in [[HLI: Function &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;summary&lt;/ins&gt;#Function call notation conventions|Function call notation conventions]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Summary==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Summary==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ELowell</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;diff=88857&amp;oldid=prev</id>
		<title>ELowell at 23:05, 11 July 2016</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;diff=88857&amp;oldid=prev"/>
		<updated>2016-07-11T23:05:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:05, 11 July 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The conventions used on this page are described in [[HLI: Function call list#Function call notation conventions|Function call notation conventions]].&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Summary==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Summary==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ELowell</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;diff=87616&amp;oldid=prev</id>
		<title>ELowell: Created page with &quot; ==Summary== &lt;dl&gt; &lt;dt&gt;Description&lt;/dt&gt; &lt;dd&gt;The IFWRITE call (WRITE) sends a line of input to Model 204.&lt;/dd&gt; &lt;dt&gt;Thread type&lt;/dt&gt; &lt;dd&gt;IFDIAL&lt;/dd&gt; &lt;dt&gt;IFCALL function number&lt;/d...&quot;</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=IFWRITE_(HLI_function)&amp;diff=87616&amp;oldid=prev"/>
		<updated>2016-07-08T23:09:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; ==Summary== &amp;lt;dl&amp;gt; &amp;lt;dt&amp;gt;Description&amp;lt;/dt&amp;gt; &amp;lt;dd&amp;gt;The IFWRITE call (WRITE) sends a line of input to Model 204.&amp;lt;/dd&amp;gt; &amp;lt;dt&amp;gt;Thread type&amp;lt;/dt&amp;gt; &amp;lt;dd&amp;gt;IFDIAL&amp;lt;/dd&amp;gt; &amp;lt;dt&amp;gt;IFCALL function number&amp;lt;/d...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
==Summary==&lt;br /&gt;
&amp;lt;dl&amp;gt;&lt;br /&gt;
&amp;lt;dt&amp;gt;Description&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;The IFWRITE call (WRITE) sends a line of input to Model 204.&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;dt&amp;gt;Thread type&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;IFDIAL&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;dt&amp;gt;IFCALL function number&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;10&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;/dl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;p class=&amp;quot;syntax&amp;quot;&amp;gt;IFWRITE|IFWRIT(RETCODE,LINE_AREA,LINE_LEN)&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;dl&amp;gt;&lt;br /&gt;
&amp;lt;dt&amp;gt;Compile-only form&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;Not available&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;dt&amp;gt;Execute-only form&amp;lt;/dt&amp;gt;&lt;br /&gt;
&amp;lt;dd&amp;gt;Not available&amp;lt;/dd&amp;gt;&lt;br /&gt;
&amp;lt;/dl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;Specify the parameters in the syntax order shown above.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Parameter&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Description&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;RETCODE&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;[O,i,r] The Model 204 return code is the required output parameter. The code is a binary integer value.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LINE_AREA&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;[I,c,r] The line area is a required input parameter that is the input line to be sent to Model 204.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LINE_LEN&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;[I,i,o] The line length is an optional input parameter that specifies the transfer length for IFWRITE.&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
This parameter determines the maximum line length for the IFWRITE call. If this parameter is present, it overrides any value specified in IFDIAL or IFDIALN. For PL/1, the length is the minimum of this value plus the string length. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
See [[#Transfer length for input to Model 204|Transfer length for input to Model 204]] for more information about the input line length. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage notes==&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Use the IFWRITE call only with an IFDIAL thread to transmit data to Model 204. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
When using IFWRITE, note that %VAR must be a string equal to TERMINAL and either a PREPARE or IDENTIFY imagename is required prior to writing a new image. See [[HLI: IFDIAL processing]] for more information about coding IFDIAL applications. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
You can specify a different buffer length with each call by specifying the [[#Transfer length for input to Model 204|line length in IFWRITE]].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Completion return code (RETCODE)==&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Code your IFDIAL application to check the return code for the following values: &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Code&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Required action&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;1&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Call IFWRITE next to provide Model 204 with input.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;2&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Call IFREAD next to get more output from Model 204.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
See [[HLI: IFDIAL processing]] for more information about coding IFDIAL applications. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
If the IFWRITE call is unsuccessful, Model 204 returns an error code for either of the following error conditions: &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Code&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;Error condition&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;12&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;IFWRITE call not accepted (IFREAD call expected).&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;100&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;No current Model 204 connection exists or the connection is lost.&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Transfer length for input to Model 204==&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The parameters in effect during the execution of the IFWRITE call determine the length of data transferred to Model 204. Several factors determine the length.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The first factor is the PL/1 string length; for PL/1 compilers (F-level, Optimizer and Checkout) use a dope vector when passing character string arguments. This dope vector contains the maximum length of the string and its address. For strings declared as VARYING, it also contains the current length.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The next factor is the transfer length for input to Model 204. This value is based on the following order of precedence, from highest to lowest: &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The optional length parameter in the IFWRITE call.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;For PL/1, if this length is greater than the current string length, the current string length is used.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt; This value is in effect only for this specific IFWRITE call.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The optional default length parameter in the IFDIAL call. This new default remains in effect until IFHNGUP is called.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;For PL/1, if this length is greater than the current string length, the current string length is used.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The standard default length is one of the following:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;252 for COBOL, FORTRAN, and Assembler&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;PL/1 current string length (dope vector)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;note&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt; The maximum length of a data area that can be transferred over an IFDIAL thread is 32763 bytes. For all languages, if the transfer length is greater than the CRAM buffer size, the data is truncated and the length adjusted. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
For more information about buffer size parameters, see [[Defining the runtime environment (CCAIN)]].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Overview of IFWRITE data transfer==&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The following table, &amp;quot;IFWRITE data transfer length,&amp;quot; summarizes the relationship between the parameters that determine the IFWRITE data transfer length. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The table uses the following codes: &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Lang=&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;n&amp;lt;/var&amp;gt; is the language indicator specified in the IFDIAL or IFDIALN call. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;LENGTH1 is the default length parameter in the IFDIAL call. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;LENGTH2 is the length parameter in the IFREAD call. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;FIXED is a PL/1 string argument that is declared as fixed. &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;VARYING is a PL/1 string argument that is declared as varying.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;CURRLEN is the current length of the PL/1 string.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;LENGTH&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;n&amp;lt;/var&amp;gt; signifies that the parameter was specified.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;amp;#172;LENGTH&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;n&amp;lt;/var&amp;gt; signifies that the parameter was not specified.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;min(&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;l&amp;lt;/var&amp;gt;,&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;m&amp;lt;/var&amp;gt;) is the transfer length, which is the minimum value of &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;l&amp;lt;/var&amp;gt; and &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;m&amp;lt;/var&amp;gt;.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;caption&amp;gt;IFWRITE data transfer length&amp;lt;/caption&amp;gt;&lt;br /&gt;
&amp;lt;tr class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th rowspan=&amp;quot;1&amp;quot; colspan=&amp;quot;3&amp;quot;&amp;gt;Parameters in effect&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th rowspan=&amp;quot;2&amp;quot; colspan=&amp;quot;1&amp;quot;&amp;gt;Transfer length&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr class=&amp;quot;head&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;th rowpsan=&amp;quot;1&amp;quot; colspan=&amp;quot;2&amp;quot;&amp;gt;IFDIAL&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;th&amp;gt;IFREAD&amp;lt;/th&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Lang=1&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&amp;lt;p&amp;gt;&amp;amp;nbsp;&amp;lt;/p&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Lang=2&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH1 &amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH2 &amp;lt;br /&amp;gt;&lt;br /&gt;
252&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Lang=3&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH1&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH2, FIXED &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2, FIXED &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH2, FIXED &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2, FIXED&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;min(LENGTH2,MAXLEN) &amp;lt;br /&amp;gt;&lt;br /&gt;
min(LENGTH1,MAXLEN) &amp;lt;br /&amp;gt;&lt;br /&gt;
min(LENGTH2,MAXLEN) &amp;lt;br /&amp;gt;&lt;br /&gt;
CURRLEN&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;Lang=4&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH1 &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH1&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;LENGTH2, VARYING &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2, VARYING &amp;lt;br /&amp;gt;&lt;br /&gt;
LENGTH2, VARYING &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;#172;LENGTH2, VARYING&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;min(LENGTH2,MAXLEN) &amp;lt;br /&amp;gt;&lt;br /&gt;
min(LENGTH1,MAXLEN) &amp;lt;br /&amp;gt;&lt;br /&gt;
min(LENGTH2,MAXLEN) &amp;lt;br /&amp;gt;&lt;br /&gt;
CURRLEN&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Coding example (Assembler)==&lt;br /&gt;
&amp;lt;p class=&amp;quot;code&amp;quot;&amp;gt;.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
  CALL IFDIAL...&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
  CALL IFREAD...&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
  MVC  WLEN(4),=F&amp;#039;9&amp;#039;&lt;br /&gt;
  CALL IFWRITE,(RETCODE,LOGONMSG,WLEN),VL&lt;br /&gt;
  CLC  RETCODE(4),=F&amp;#039;2&amp;#039;&lt;br /&gt;
  BNE  END&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
END    ABEND 999,DUMP&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
RETCODE       DC  F&amp;#039;0&amp;#039;&lt;br /&gt;
LOGONMSG      DC  C&amp;#039;LOGON USR&amp;#039;&lt;br /&gt;
WLEN          DC  F&amp;#039;0&amp;#039;&lt;br /&gt;
  END&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: HLI functions]]&lt;/div&gt;</summary>
		<author><name>ELowell</name></author>
	</entry>
</feed>