<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; Program Described Files</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/program-described-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 12:11:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>I/O Operations in Program described files</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/io-operations-in-program-described-files/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/io-operations-in-program-described-files/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:26:34 +0000</pubDate>
		<dc:creator>Shrutigupta</dc:creator>
				<category><![CDATA[Program Described Files]]></category>
		<category><![CDATA[RPG I/O operations]]></category>
		<category><![CDATA[RPG/400]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I have written a program, which reads records from a program described file and write records to another program describe file. However it seems working but that doesn&#8217;t seem an efficient program to me. Could anyone please suggest me what can be done to improve this program. FEmployee IF F 39 DISK FEmpoutf O [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>I have written a program, which reads records from a program described file and write records to another program describe file. However it seems working but that doesn&#8217;t seem an efficient program to me. Could anyone please suggest me what can be done to improve this program.</p>
<p>FEmployee  IF   F   39        DISK<br />
FEmpoutf   O    F   39        DISK<br />
Drecemp           DS<br />
DEMPID                    1     10<br />
DFNAME                   11     20<br />
DMNAME                   21     21<br />
DLNAME                   22     31<br />
DSALARY                  32     35P 2<br />
DDEPT                    36     39<br />
IEmployee  NS<br />
I                                  1   10  empid<br />
I                                 11   20  fname<br />
I                                 21   21  mname<br />
I                                 22   31  lname<br />
I                             P   32   35 2Salary<br />
I                                 36   39  DEPT<br />
 /FREE<br />
  READ EMPLOYEE;<br />
  DOW NOT %EOF;<br />
     WRITE EMPOUTF RECEMP;<br />
     READ EMPLOYEE;<br />
  ENDDO;<br />
  EVAL *INLR = *ON;<br />
  RETURN;<br />
 /END-FREE<br />
Oempoutf   D<br />
O                       EMPID               10<br />
O                       FNAME             20<br />
O                       MNAME            21<br />
O                       LNAME             31<br />
O                       SALARY          35P<br />
O                       DEPT                39       </p>
<p>Some doubts:</p>
<p>1. I had to define an extra data structure recemp as for program described files it&#8217;s necessary to use the data structure name in WRITE operation. Now my doubt is, could i have defined data structure only once and use that data structure in I-specs and O-specs as my both Input and Output file structure is exactly same.</p>
<p>2. I have seen in some programs that after reading the record we dont move it to output record, while in COBOL we explicitly have to populate the output record before writing it to a file. How is this achieved in RPG?</p>
<p>3. Kindly suggest me more ways the program can be improved.</p>
<p>Regards<br />
Shruti</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/io-operations-in-program-described-files/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Program Described Files?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/program-described-file/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/program-described-file/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 06:19:22 +0000</pubDate>
		<dc:creator>6r</dc:creator>
				<category><![CDATA[Data Description Specifications]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[Program Described Files]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Whats the use of program described file any example with file dds please?]]></description>
				<content:encoded><![CDATA[<p>Whats the use of program described file any example with file dds please?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/program-described-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/14 queries in 0.090 seconds using memcached
Object Caching 378/403 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 12:31:39 -->