You do not say what platform or version of focus/webfocus
issue a filedef with a recfm and lrecl
(LRECL 500 RECFM F
January 30, 2009, 09:15 AM
Francis Mariani
Check that the number of characters define in the Master corresponds to the real record length of the file. Make sure that the field RESTO is not too long.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
January 30, 2009, 09:34 AM
j.gross
Your ACTUALs add up to 500 -- I believe the sum should be 496, since the first 4 bytes of the record are a record-length prefix which counts in the LRECL but is not part of the logical layout. When the sum of ACTUALs in the MFD exceeds the correct value, each Focus read will pull data from the following record as well, which would account for getting EOF after issuing reads numbering half the number of records. So reduce the ACTUAL of the filler field (resto) by 4, in line with Francis' advice.