 




<?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: rpgle programming</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 17:13:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: peraj</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71498</link>
		<dc:creator>peraj</dc:creator>
		<pubDate>Fri, 11 Dec 2009 09:50:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-71498</guid>
		<description><![CDATA[Thats perfectly understood Mr.ElTerrifico and your inputs were very constructive...looking forward to more help in the upcoming days....Thank you]]></description>
		<content:encoded><![CDATA[<p>Thats perfectly understood Mr.ElTerrifico and your inputs were very constructive&#8230;looking forward to more help in the upcoming days&#8230;.Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elterrifico</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71436</link>
		<dc:creator>elterrifico</dc:creator>
		<pubDate>Thu, 10 Dec 2009 13:33:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-71436</guid>
		<description><![CDATA[You’re welcome Peraj.  Happy to help.

The relative record number (RRN) is simply the position (or record number) of the record in the file.  (There are a few more subtleties, but that this is the basic concept.) The first record in the file is RRN 1, the second record is RRN 2, and so on.  For the sample you supplied if they were the only 3 records in your file, the record with IDNO 3772 would be record number 1.  When you put in 3772 without the K in the F spec, you were trying to access the 3772nd record in the file.  If your file did not have that many records, the CHAIN would fail.]]></description>
		<content:encoded><![CDATA[<p>You’re welcome Peraj.  Happy to help.</p>
<p>The relative record number (RRN) is simply the position (or record number) of the record in the file.  (There are a few more subtleties, but that this is the basic concept.) The first record in the file is RRN 1, the second record is RRN 2, and so on.  For the sample you supplied if they were the only 3 records in your file, the record with IDNO 3772 would be record number 1.  When you put in 3772 without the K in the F spec, you were trying to access the 3772nd record in the file.  If your file did not have that many records, the CHAIN would fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peraj</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71434</link>
		<dc:creator>peraj</dc:creator>
		<pubDate>Thu, 10 Dec 2009 10:07:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-71434</guid>
		<description><![CDATA[Vow I got it Mr.ElTerrifico ,its functioning as expected when I placed a K in position 34 of the F spec.I perfectly understand the entire process now but I dont understand the concept of relative record numbers still ...for example the values stored in the DTLF be as below
        IDNO       PDATE
        3772        12/8/2009
        3773         16/9/2008
        4772          18/9/2009
so what do you mean by relative record numbers here,and when I entered 3772 with k in position 34 it is perfectly retrieving the PDATE but with out k what would have happened exactly.....Thanks a lot Elterrifico and Phil for taking time to answer my questions...]]></description>
		<content:encoded><![CDATA[<p>Vow I got it Mr.ElTerrifico ,its functioning as expected when I placed a K in position 34 of the F spec.I perfectly understand the entire process now but I dont understand the concept of relative record numbers still &#8230;for example the values stored in the DTLF be as below<br />
        IDNO       PDATE<br />
        3772        12/8/2009<br />
        3773         16/9/2008<br />
        4772          18/9/2009<br />
so what do you mean by relative record numbers here,and when I entered 3772 with k in position 34 it is perfectly retrieving the PDATE but with out k what would have happened exactly&#8230;..Thanks a lot Elterrifico and Phil for taking time to answer my questions&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71421</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 10 Dec 2009 02:36:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-71421</guid>
		<description><![CDATA[Typically,
if you&#039;ve successfully found the record you would show a second display with the data 
else you&#039;ld show an error message highlighting the field on the first screen and indicating the error.
Phil]]></description>
		<content:encoded><![CDATA[<p>Typically,<br />
if you&#8217;ve successfully found the record you would show a second display with the data<br />
else you&#8217;ld show an error message highlighting the field on the first screen and indicating the error.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: elterrifico</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71398</link>
		<dc:creator>elterrifico</dc:creator>
		<pubDate>Wed, 09 Dec 2009 13:35:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-71398</guid>
		<description><![CDATA[You&#039;re pretty much right on track.

The EXFMT essentially performs 2 functions.  First it writes the contents of the display file to the screen.  Then after the user has entered their data and press enter or some other function key it reads the display file and passes the data from the screen back to the RPG program.   The CHAIN operation retrieves the record specified by the IDNO field.  You can add an IF %FOUND statement after the CHAIN to determine if you found a record.

I think I do see another problem here.  You need to put a K in position 34 of the F spec for DTLF.

DLTF      IF   E           K DISK

The K signifies that you will be accessing the file with key values.  By leaving that blank you are accessing the file by relative record number.  What will happen is that you will access the record with the record number that you enter into IDNO and not the record with the key value IDNO.

I hope this helps.]]></description>
		<content:encoded><![CDATA[<p>You&#8217;re pretty much right on track.</p>
<p>The EXFMT essentially performs 2 functions.  First it writes the contents of the display file to the screen.  Then after the user has entered their data and press enter or some other function key it reads the display file and passes the data from the screen back to the RPG program.   The CHAIN operation retrieves the record specified by the IDNO field.  You can add an IF %FOUND statement after the CHAIN to determine if you found a record.</p>
<p>I think I do see another problem here.  You need to put a K in position 34 of the F spec for DTLF.</p>
<p>DLTF      IF   E           K DISK</p>
<p>The K signifies that you will be accessing the file with key values.  By leaving that blank you are accessing the file by relative record number.  What will happen is that you will access the record with the record number that you enter into IDNO and not the record with the key value IDNO.</p>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peraj</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71390</link>
		<dc:creator>peraj</dc:creator>
		<pubDate>Wed, 09 Dec 2009 05:54:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-71390</guid>
		<description><![CDATA[My assumption about this program is after I enter the IDNO the exfmt statement passes the IDNo to the rpgle program and after the chain operation the keyed field IDNO with the particular IDNO is retrieved and displayed in the DSPF01...Am I right in my assumption..can somebody give me a explanation in this regard..Thank you..]]></description>
		<content:encoded><![CDATA[<p>My assumption about this program is after I enter the IDNO the exfmt statement passes the IDNo to the rpgle program and after the chain operation the keyed field IDNO with the particular IDNO is retrieved and displayed in the DSPF01&#8230;Am I right in my assumption..can somebody give me a explanation in this regard..Thank you..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peraj</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71389</link>
		<dc:creator>peraj</dc:creator>
		<pubDate>Wed, 09 Dec 2009 05:44:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-71389</guid>
		<description><![CDATA[Thanks ElTerrifico and Phil ,I got it cleared...its working fine now...but what happens exactly after the exfmt statement ,where is the IDNO stored and what happens during the chain operation...I could not still get the pdate for the entered IDNO in the displayfile..please give me some solution]]></description>
		<content:encoded><![CDATA[<p>Thanks ElTerrifico and Phil ,I got it cleared&#8230;its working fine now&#8230;but what happens exactly after the exfmt statement ,where is the IDNO stored and what happens during the chain operation&#8230;I could not still get the pdate for the entered IDNO in the displayfile..please give me some solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpgle-programming/#comment-71358</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Tue, 08 Dec 2009 18:21:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-71358</guid>
		<description><![CDATA[Right 
With CF03(03) it&#039;s *IN03
Wiht CF03        it&#039;s *INKC .. CF01 would be *INKA, CF02 would be *INKB, etc
Phil]]></description>
		<content:encoded><![CDATA[<p>Right<br />
With CF03(03) it&#8217;s *IN03<br />
Wiht CF03        it&#8217;s *INKC .. CF01 would be *INKA, CF02 would be *INKB, etc<br />
Phil</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 3/8 queries in 0.038 seconds using memcached
Object Caching 367/368 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 18:53:52 -->