 




<?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: RPG/400 number of Records present in a physical file using file information data structure</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/</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: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80588</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 19 Aug 2010 23:00:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-80588</guid>
		<description><![CDATA[Not done yet.  If your only purpose was to determine how many records were in the file, then the CL command RTVMBRD would be better.

If you aren&#039;t using the file then the IP requires the program to read all the records, as you discovered.  You could reduce the work with an *INLR in the mainline or by opening the file as IF which in RPG/400 requires a read, although it doesn&#039;t have to be in the code that&#039;s processed.]]></description>
		<content:encoded><![CDATA[<p>Not done yet.  If your only purpose was to determine how many records were in the file, then the CL command RTVMBRD would be better.</p>
<p>If you aren&#8217;t using the file then the IP requires the program to read all the records, as you discovered.  You could reduce the work with an *INLR in the mainline or by opening the file as IF which in RPG/400 requires a read, although it doesn&#8217;t have to be in the code that&#8217;s processed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80557</link>
		<dc:creator>kaly</dc:creator>
		<pubDate>Thu, 19 Aug 2010 15:24:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-80557</guid>
		<description><![CDATA[philp sir i excluded *inlr and gave the things i want to display within *inzsr it gives correct output i have given the coding below please kindly tell  if it is correct or we can code like this sir.i have declared as primary file only but not given *inlr

FPF001   IP  E                    DISK                       
F                                                                KINFDS INFDS1 
IINFDS1      DS                                              
I                                                 B 156 1590RCDCNT        
I                                                       83  92 FILNAM        
I                                                      93 102 LIBRAR        
I                                                     129 138 MEMBER        
C                  *INZSR         BEGSR                                  
C                   RCDCNT    DSPLY                                  
C                   FILNAM        DSPLY                                  
C                   LIBRAR        DSPLY                                  
C                   MEMBER     DSPLY                                  
C                   ENDSR]]></description>
		<content:encoded><![CDATA[<p>philp sir i excluded *inlr and gave the things i want to display within *inzsr it gives correct output i have given the coding below please kindly tell  if it is correct or we can code like this sir.i have declared as primary file only but not given *inlr</p>
<p>FPF001   IP  E                    DISK<br />
F                                                                KINFDS INFDS1<br />
IINFDS1      DS<br />
I                                                 B 156 1590RCDCNT<br />
I                                                       83  92 FILNAM<br />
I                                                      93 102 LIBRAR<br />
I                                                     129 138 MEMBER<br />
C                  *INZSR         BEGSR<br />
C                   RCDCNT    DSPLY<br />
C                   FILNAM        DSPLY<br />
C                   LIBRAR        DSPLY<br />
C                   MEMBER     DSPLY<br />
C                   ENDSR</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80556</link>
		<dc:creator>kaly</dc:creator>
		<pubDate>Thu, 19 Aug 2010 15:15:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-80556</guid>
		<description><![CDATA[everyone thanks for your answers.
Pdraebel sir i should not use READ because its an input operation no
i need to display the number of records without using any input operations]]></description>
		<content:encoded><![CDATA[<p>everyone thanks for your answers.<br />
Pdraebel sir i should not use READ because its an input operation no<br />
i need to display the number of records without using any input operations</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdraebel</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80553</link>
		<dc:creator>pdraebel</dc:creator>
		<pubDate>Thu, 19 Aug 2010 10:06:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-80553</guid>
		<description><![CDATA[If you only need to know the number of records use a file Input Full Procedural and UC (user controlled)
FINPUT   IF  F     128            DISK                           UC   
F                                              KINFDS INFINP    
IINPUT   NS  01                                                    
 *                                                                 
 * File information data structure                                 
 *                                                                 
IINFINP      DS                                                    
I                                        1 256 IO0001              
I                                      257 400 IO0002              
I                                       83  92 FILE                
I                                       93 102 LIBR                
I                                      129 138 MEMBER              
I                                     *RECORD  RECFMT              
I                                    B 156 1590RECORD              
Include a &quot;Dummy&quot; Open and Read (to get Compiled)
*INLR     IFNE *INLR                           
          OPEN INPUT                         
          READ INPUT                    99   
          END                                
With the INFDS coded you can display the number of records easily. 
Do an OVERRIDE of INPUT to the file name whose recordnumber needs to be displayed.]]></description>
		<content:encoded><![CDATA[<p>If you only need to know the number of records use a file Input Full Procedural and UC (user controlled)<br />
FINPUT   IF  F     128            DISK                           UC<br />
F                                              KINFDS INFINP<br />
IINPUT   NS  01<br />
 *<br />
 * File information data structure<br />
 *<br />
IINFINP      DS<br />
I                                        1 256 IO0001<br />
I                                      257 400 IO0002<br />
I                                       83  92 FILE<br />
I                                       93 102 LIBR<br />
I                                      129 138 MEMBER<br />
I                                     *RECORD  RECFMT<br />
I                                    B 156 1590RECORD<br />
Include a &#8220;Dummy&#8221; Open and Read (to get Compiled)<br />
*INLR     IFNE *INLR<br />
          OPEN INPUT<br />
          READ INPUT                    99<br />
          END<br />
With the INFDS coded you can display the number of records easily.<br />
Do an OVERRIDE of INPUT to the file name whose recordnumber needs to be displayed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80545</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 19 Aug 2010 06:31:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-80545</guid>
		<description><![CDATA[&lt;i&gt;...is there any equivalent in RPG400...&lt;/i&gt;

The ILE reference manuals are available as web pages. The old compiler manuals are only available as .PDF downloads. You can find all RPG manuals from the &lt;a href=&quot;http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzahg/rzahgrpgcode.htm&quot;&gt;Programming: RPG&lt;/a&gt; page for your version of the operating system.

The RPG/400 manuals aren&#039;t available as web pages because you shouldn&#039;t be using it. Convert the programs to RPG IV. Everyone is forgetting how RPG III works. IBM has not been enhancing it for years. It cannot process many features that have been added to the system in the past ten years.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;is there any equivalent in RPG400&#8230;</i></p>
<p>The ILE reference manuals are available as web pages. The old compiler manuals are only available as .PDF downloads. You can find all RPG manuals from the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzahg/rzahgrpgcode.htm">Programming: RPG</a> page for your version of the operating system.</p>
<p>The RPG/400 manuals aren&#8217;t available as web pages because you shouldn&#8217;t be using it. Convert the programs to RPG IV. Everyone is forgetting how RPG III works. IBM has not been enhancing it for years. It cannot process many features that have been added to the system in the past ten years.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80527</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Thu, 19 Aug 2010 00:09:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-80527</guid>
		<description><![CDATA[Actually, I think it&#039;s the RPG/400 Reference Manual.
Phil]]></description>
		<content:encoded><![CDATA[<p>Actually, I think it&#8217;s the RPG/400 Reference Manual.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80521</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Wed, 18 Aug 2010 23:29:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-80521</guid>
		<description><![CDATA[Wow, so many questions
Don&#039;t know if I can answer them all.
I haven&#039;t written in RPG/400 in 10 years and never used IP files..I find that the complexity of the problem requires control that I don&#039;t feel I would have with IP.

Anyway.  Put things that you want done once before the cycle starts up in the subroutine *INZSR.  Don&#039;t code an *INLR if you want the program to automatically access all the records in the file, after it&#039;s done it will turn on the *INLR for you.

Input prompts for I specs, maybe IPJ and IPJX, when you move up to RPG/IV or LE you will rarely use I specs.  The D spec is so much more.

Finally, Google RPG/400 Programmer&#039;s Manual.  You will want to have that available at all times.
Phil]]></description>
		<content:encoded><![CDATA[<p>Wow, so many questions<br />
Don&#8217;t know if I can answer them all.<br />
I haven&#8217;t written in RPG/400 in 10 years and never used IP files..I find that the complexity of the problem requires control that I don&#8217;t feel I would have with IP.</p>
<p>Anyway.  Put things that you want done once before the cycle starts up in the subroutine *INZSR.  Don&#8217;t code an *INLR if you want the program to automatically access all the records in the file, after it&#8217;s done it will turn on the *INLR for you.</p>
<p>Input prompts for I specs, maybe IPJ and IPJX, when you move up to RPG/IV or LE you will rarely use I specs.  The D spec is so much more.</p>
<p>Finally, Google RPG/400 Programmer&#8217;s Manual.  You will want to have that available at all times.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80495</link>
		<dc:creator>kaly</dc:creator>
		<pubDate>Wed, 18 Aug 2010 12:31:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-80495</guid>
		<description><![CDATA[also on I specifications if i give IPDS in starting over the numbers in left side end and prompt i get
 
 Data Struct                            S/U                 External                       
    Name            Number    Option    DS     File Name     Occurs    Length  
                                                               DS                                     

but i don&#039;t know what to give in Left side end (like IPDS) to get


                                                  Decimal        Field              Control     Matching
  P/B/L/R      From       To       Positions      Name            Level       Fields 
                           83       92                             FILNAM                       

  Field Record        Positive     Negative     Zero /                       
    Relation              Field          Field             Blank                        
                                                                             
i simply get this by typing something in positions 44 to 58 in I specs and take F4(prompt) and then only i get it.
is there any other actual word to get this like IPDS]]></description>
		<content:encoded><![CDATA[<p>also on I specifications if i give IPDS in starting over the numbers in left side end and prompt i get</p>
<p> Data Struct                            S/U                 External<br />
    Name            Number    Option    DS     File Name     Occurs    Length<br />
                                                               DS                                     </p>
<p>but i don&#8217;t know what to give in Left side end (like IPDS) to get</p>
<p>                                                  Decimal        Field              Control     Matching<br />
  P/B/L/R      From       To       Positions      Name            Level       Fields<br />
                           83       92                             FILNAM                       </p>
<p>  Field Record        Positive     Negative     Zero /<br />
    Relation              Field          Field             Blank                        </p>
<p>i simply get this by typing something in positions 44 to 58 in I specs and take F4(prompt) and then only i get it.<br />
is there any other actual word to get this like IPDS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80494</link>
		<dc:creator>kaly</dc:creator>
		<pubDate>Wed, 18 Aug 2010 12:23:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-80494</guid>
		<description><![CDATA[if i use this code results are coming correctly sir,but can i declare a file as I P E (Primary for RPG logic cycle) and issue seton LR is it allowed.if i give this,result is displayed only once.]]></description>
		<content:encoded><![CDATA[<p>if i use this code results are coming correctly sir,but can i declare a file as I P E (Primary for RPG logic cycle) and issue seton LR is it allowed.if i give this,result is displayed only once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rpg400-number-of-records-present-in-a-physical-file-using-file-information-data-structure/#comment-80493</link>
		<dc:creator>kaly</dc:creator>
		<pubDate>Wed, 18 Aug 2010 12:21:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-80493</guid>
		<description><![CDATA[FPF001   IP  E                    DISK                        
F                                                                              KINFDS INFDS1  
I INFDS1      DS                                               
I                                                 B 156 1590RCDCNT         
I                                                       83  92 FILNAM         
I                                                       93 102 LIBRAR         
I                                                     129 138 MEMBER         
C           RCDCNT    DSPLY                                   
C           FILNAM    DSPLY                                   
C           LIBRAR    DSPLY                                   
C           MEMBER    DSPLY                                   
C                     SETON                         LR]]></description>
		<content:encoded><![CDATA[<p>FPF001   IP  E                    DISK<br />
F                                                                              KINFDS INFDS1<br />
I INFDS1      DS<br />
I                                                 B 156 1590RCDCNT<br />
I                                                       83  92 FILNAM<br />
I                                                       93 102 LIBRAR<br />
I                                                     129 138 MEMBER<br />
C           RCDCNT    DSPLY<br />
C           FILNAM    DSPLY<br />
C           LIBRAR    DSPLY<br />
C           MEMBER    DSPLY<br />
C                     SETON                         LR</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/8 queries in 0.011 seconds using memcached
Object Caching 395/396 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-20 01:19:19 -->