 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Read a externally described file and write the record to another externally decribed file using RPGLE.</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/read-a-externally-described-file-and-write-the-record-to-another-externally-decribed-file-using-rpgle/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/read-a-externally-described-file-and-write-the-record-to-another-externally-decribed-file-using-rpgle/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: 19521956</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/read-a-externally-described-file-and-write-the-record-to-another-externally-decribed-file-using-rpgle/#comment-43447</link>
		<dc:creator>19521956</dc:creator>
		<pubDate>Sun, 26 Nov 2006 04:04:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-43447</guid>
		<description><![CDATA[I quote from Read from the ILE RPG Reference Guide, for the Read Operation code:

&quot;The READ operation reads the record, currently pointed to, from a full procedural file (identified by an F in position 18 of the file description specifications).
The name operand is required and must be the name of a file or record format. A record format name is allowed only with an externally described file (E in position
22 of the file description specifications). It may be the case that a READ-by-format-name operation will receive a different format from the one you specified in the name operand. If so, your READ operation ends in error.
If the data-structure operand is specified, the record is read directly into the data structure. If name refers to a program-described file (identified by an F in position
22 of the file description specification), the data structure can be any data structure of the same length as the file?s declared record length. If name refers to an
externally-described file or a record format from an externally described file, the data structure must be a data structure defined with EXTNAME(...:*INPUT) or
LIKEREC(...:*INPUT).&quot;

You don&#039;t have to use a data structure.  You can if you want to.  If you do, then specify the data structure accordidng to the quotation.]]></description>
		<content:encoded><![CDATA[<p>I quote from Read from the ILE RPG Reference Guide, for the Read Operation code:</p>
<p>&#8220;The READ operation reads the record, currently pointed to, from a full procedural file (identified by an F in position 18 of the file description specifications).<br />
The name operand is required and must be the name of a file or record format. A record format name is allowed only with an externally described file (E in position<br />
22 of the file description specifications). It may be the case that a READ-by-format-name operation will receive a different format from the one you specified in the name operand. If so, your READ operation ends in error.<br />
If the data-structure operand is specified, the record is read directly into the data structure. If name refers to a program-described file (identified by an F in position<br />
22 of the file description specification), the data structure can be any data structure of the same length as the file?s declared record length. If name refers to an<br />
externally-described file or a record format from an externally described file, the data structure must be a data structure defined with EXTNAME(&#8230;:*INPUT) or<br />
LIKEREC(&#8230;:*INPUT).&#8221;</p>
<p>You don&#8217;t have to use a data structure.  You can if you want to.  If you do, then specify the data structure accordidng to the quotation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashnirody</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/read-a-externally-described-file-and-write-the-record-to-another-externally-decribed-file-using-rpgle/#comment-43448</link>
		<dc:creator>ashnirody</dc:creator>
		<pubDate>Tue, 21 Nov 2006 19:12:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-43448</guid>
		<description><![CDATA[Here is how I would do it.

FRESULTS   IF A E       DISK    RENAME(RESULTS:RESULTR)    

DOUTDS           DS            LIKEREC(RESULTS:*OUTPUT)   
DINDS            DS            LIKEREC(RESULTS) 

C          READ      EPPATEMPW1  INDS                      
C
C*  Make your changes to INDS fields here			
C
C          Eval      OUTDS = INDS  
C          WRITE     RESULTR     OUTDS   

Hope this works for you.            
]]></description>
		<content:encoded><![CDATA[<p>Here is how I would do it.</p>
<p>FRESULTS   IF A E       DISK    RENAME(RESULTS:RESULTR)    </p>
<p>DOUTDS           DS            LIKEREC(RESULTS:*OUTPUT)<br />
DINDS            DS            LIKEREC(RESULTS) </p>
<p>C          READ      EPPATEMPW1  INDS<br />
C<br />
C*  Make your changes to INDS fields here<br />
C<br />
C          Eval      OUTDS = INDS<br />
C          WRITE     RESULTR     OUTDS   </p>
<p>Hope this works for you.            </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 19521956</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/read-a-externally-described-file-and-write-the-record-to-another-externally-decribed-file-using-rpgle/#comment-43449</link>
		<dc:creator>19521956</dc:creator>
		<pubDate>Tue, 21 Nov 2006 06:35:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-43449</guid>
		<description><![CDATA[You use a data structure to write to a program-described file.  

When you use an externally-described file you don&#039;t need to define a data structure.  You move the values to each of the fields in the externally-described file and then you use the WRITE operation code, with the Result Field empty.]]></description>
		<content:encoded><![CDATA[<p>You use a data structure to write to a program-described file.  </p>
<p>When you use an externally-described file you don&#8217;t need to define a data structure.  You move the values to each of the fields in the externally-described file and then you use the WRITE operation code, with the Result Field empty.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.017 seconds using memcached
Object Caching 296/299 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 06:21:10 -->