 




<?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: AS400 &#8211; RPGLE</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 19:04:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58989</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sun, 04 Jan 2009 02:15:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-58989</guid>
		<description><![CDATA[The multi-format file LF1 actually compiled?
The key structure looks all wrong.
This isn&#039;t the one you showed us before with EMPNUM in both physicals
I think that the key should be structurly the same or a skip (I&#039;m not sure of the sintax.)

Typeically these monsters are made for a case where the variaous physicals have
similar keys
IE: the order header, order detail, order comments, etc.
Then reading should give the order header, followed by order comments, and then each order detail followed by it&#039;s comment.

If you have an option, multi-formats would not be the prefered way to go.  So why do they exist -- to simulate a system with one punched card reader.  The cards would all be sorted in the order described using a card sorter and then loaded in the reader.  Voila you have all the records you need in just the right order.  .]]></description>
		<content:encoded><![CDATA[<p>The multi-format file LF1 actually compiled?<br />
The key structure looks all wrong.<br />
This isn&#8217;t the one you showed us before with EMPNUM in both physicals<br />
I think that the key should be structurly the same or a skip (I&#8217;m not sure of the sintax.)</p>
<p>Typeically these monsters are made for a case where the variaous physicals have<br />
similar keys<br />
IE: the order header, order detail, order comments, etc.<br />
Then reading should give the order header, followed by order comments, and then each order detail followed by it&#8217;s comment.</p>
<p>If you have an option, multi-formats would not be the prefered way to go.  So why do they exist &#8212; to simulate a system with one punched card reader.  The cards would all be sorted in the order described using a card sorter and then loaded in the reader.  Voila you have all the records you need in just the right order.  .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58981</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Fri, 02 Jan 2009 09:45:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-58981</guid>
		<description><![CDATA[`
Hi,

Try specifying that the file is Keyed on the F spec.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>`<br />
Hi,</p>
<p>Try specifying that the file is Keyed on the F spec.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajeshece</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58980</link>
		<dc:creator>rajeshece</dc:creator>
		<pubDate>Fri, 02 Jan 2009 05:05:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-58980</guid>
		<description><![CDATA[I got Run time Error while reading the Multi format logical file

Code i have tried

PF1

A     R           PF1R    
A                    NAME          20A

PF2 

A    R           PF2R
A                  NUMBER     10A

Multi Format Logical File  - LF1

A     R        PF1R            PFILE(PF1)
A     K        Name

A    R        PF2R             PFILE(PF2)
A    K        Number

Program
FLF1       IF   E             DISK     
C                   Read      lf1   
C    Name    Dsply
C                   Eval        *Inlr = *On

While Executing the above code, i am getting the Error CPF4247
Can you help me to correct the code
I tried the above example using USROPN also]]></description>
		<content:encoded><![CDATA[<p>I got Run time Error while reading the Multi format logical file</p>
<p>Code i have tried</p>
<p>PF1</p>
<p>A     R           PF1R<br />
A                    NAME          20A</p>
<p>PF2 </p>
<p>A    R           PF2R<br />
A                  NUMBER     10A</p>
<p>Multi Format Logical File  &#8211; LF1</p>
<p>A     R        PF1R            PFILE(PF1)<br />
A     K        Name</p>
<p>A    R        PF2R             PFILE(PF2)<br />
A    K        Number</p>
<p>Program<br />
FLF1       IF   E             DISK<br />
C                   Read      lf1<br />
C    Name    Dsply<br />
C                   Eval        *Inlr = *On</p>
<p>While Executing the above code, i am getting the Error CPF4247<br />
Can you help me to correct the code<br />
I tried the above example using USROPN also</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58895</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Tue, 30 Dec 2008 14:34:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-58895</guid>
		<description><![CDATA[You make a single  F spec 
If you want data from both
f MyLF      IF   E           K DISK 

The F spec keywords IGNORE or INCLUDE can be used if you want data from some but not all of the files mapped in the multirecord fiel

The F spec keyword INFDS(data_structure_name) can be used to identify a data structure
the file information data structure can provide the record name whenever a record is accessed so you can tell which file it comes from -- positions 38-45 or keyword *RECORD

You can do SETLL, CHAIN, ReAD etc on the file - also updates and deletes (you will need the record name from the INFDS to do these.  

If you have no interest in which file the data is coming from this is the code.
It will look just like a physical file to the program.

*LOVAL SETLL MyLF
Read MyLF
dow not(%EOF(MyLOC))
   do something
   ReadMyLF
ENDDO

Phil]]></description>
		<content:encoded><![CDATA[<p>You make a single  F spec<br />
If you want data from both<br />
f MyLF      IF   E           K DISK </p>
<p>The F spec keywords IGNORE or INCLUDE can be used if you want data from some but not all of the files mapped in the multirecord fiel</p>
<p>The F spec keyword INFDS(data_structure_name) can be used to identify a data structure<br />
the file information data structure can provide the record name whenever a record is accessed so you can tell which file it comes from &#8212; positions 38-45 or keyword *RECORD</p>
<p>You can do SETLL, CHAIN, ReAD etc on the file &#8211; also updates and deletes (you will need the record name from the INFDS to do these.  </p>
<p>If you have no interest in which file the data is coming from this is the code.<br />
It will look just like a physical file to the program.</p>
<p>*LOVAL SETLL MyLF<br />
Read MyLF<br />
dow not(%EOF(MyLOC))<br />
   do something<br />
   ReadMyLF<br />
ENDDO</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58890</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Tue, 30 Dec 2008 12:21:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-58890</guid>
		<description><![CDATA[Hi,

Now I see that the formats point to different physicals.  So you can just refer to the format names instead of the file names.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Now I see that the formats point to different physicals.  So you can just refer to the format names instead of the file names.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58888</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Tue, 30 Dec 2008 11:55:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-58888</guid>
		<description><![CDATA[Hi,

Why do you have 2 formats in your logical file which are identical?  If it&#039;s not necessary, then you have your solution.

If the 2 record formats are necessary, you should be able to chain, read, etc by using the record format name instead of the file name.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Why do you have 2 formats in your logical file which are identical?  If it&#8217;s not necessary, then you have your solution.</p>
<p>If the 2 record formats are necessary, you should be able to chain, read, etc by using the record format name instead of the file name.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajeshece</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58884</link>
		<dc:creator>rajeshece</dc:creator>
		<pubDate>Tue, 30 Dec 2008 11:18:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-58884</guid>
		<description><![CDATA[Its a multi format logical file

A       R                    FMT1                     PFILE(FILE1)   
A       K                    EMPNO
 
A       R                   FMT2                      PFILE(FILE2)
A       K                   EMPNO

I want to use the multi format logical file in my rpgle program. How to use this. Can you please give me the example]]></description>
		<content:encoded><![CDATA[<p>Its a multi format logical file</p>
<p>A       R                    FMT1                     PFILE(FILE1)<br />
A       K                    EMPNO</p>
<p>A       R                   FMT2                      PFILE(FILE2)<br />
A       K                   EMPNO</p>
<p>I want to use the multi format logical file in my rpgle program. How to use this. Can you please give me the example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/as400-rpgle/#comment-58854</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Mon, 29 Dec 2008 13:54:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-58854</guid>
		<description><![CDATA[The answer is yes but I&#039;m not sure about the question...
&quot; the Multiple logical files &quot;

It&#039;s the word &quot;the&quot; in your question that got me wondering if you were refering to:

a.  having F specs and operations on more than one logical file, perhaps over the same physical file.  
          (answered above by Martin) 
            or
b.  having an F spec and operations on a multi-format logical file,  which allows access to records from more than one physical file.
          or
c.  having an F spec and operations on a logical over a physical file having more than one member.

the asnwers to all three are yes.  I don&#039;t think you were asking about &#039;c&#039; but probably a or b.  The reasons and methods are different for each of these questions.

Phil]]></description>
		<content:encoded><![CDATA[<p>The answer is yes but I&#8217;m not sure about the question&#8230;<br />
&#8221; the Multiple logical files &#8221;</p>
<p>It&#8217;s the word &#8220;the&#8221; in your question that got me wondering if you were refering to:</p>
<p>a.  having F specs and operations on more than one logical file, perhaps over the same physical file.<br />
          (answered above by Martin)<br />
            or<br />
b.  having an F spec and operations on a multi-format logical file,  which allows access to records from more than one physical file.<br />
          or<br />
c.  having an F spec and operations on a logical over a physical file having more than one member.</p>
<p>the asnwers to all three are yes.  I don&#8217;t think you were asking about &#8216;c&#8217; but probably a or b.  The reasons and methods are different for each of these questions.</p>
<p>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 6/9 queries in 0.013 seconds using memcached
Object Caching 366/369 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-18 19:42:45 -->