× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Since 0 is not negative the system won't give an error. technically the 
begiining of the file is and "end of file" You can set on EOF from READP 
also. 
I also found this part in the manual
.
The following operations, if successful, set %EOF(filename) off. If the 
operation is not successful, %EOF(filename) is not changed. %EOF with no 
parameter is not changed by these operations.
CHAIN (Random Retrieval from a File) 
OPEN (Open File for Processing) 
SETGT (Set Greater Than) 
SETLL (Set Lower Limit)
When a full-procedural file is specified, this function returns '1' if the 
previous operation in the list above, for the specified file, resulted in 
an end of file or beginning of file condition. For primary and secondary 
files, %EOF is available only if the file name is specified. It is set to 
'1' if the most recent input operation during *GETIN processing resulted 
in an end of file or beginning of file condition. Otherwise, it returns 
'0'.




"Kurt Anderson" <kjanderson@xxxxxxxxxxxxx> 
Sent by: rpg400-l-bounces+broche=packagingcorp.com@xxxxxxxxxxxx
10/20/2006 12:37 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
"RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: Using RRN 0 to do Setll on arrival sequence file






That is curious then.  Why doesn't SetLL 0 produce the same result?  And
since it doesn't, then why is it positioning to the end of file?
Interesting indeed.

Kurt Anderson
Application Developer
Highsmith Inc

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Crispin Bates
Sent: Friday, October 20, 2006 12:05 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Using RRN 0 to do Setll on arrival sequence file

You get CPF5025 - Input operation past start or end of file :-)

----- Original Message -----
From: "Joe Pluta" <joepluta@xxxxxxxxxxxxxxxxx>
To: "'RPG programming on the AS400 / iSeries'" <rpg400-l@xxxxxxxxxxxx>
Sent: Friday, October 20, 2006 12:55 PM
Subject: RE: Using RRN 0 to do Setll on arrival sequence file


What happens with SETLL -1?

Just wondering.

Joe

From: Alan Shore

Your welcome Lim, but like I said in a previous e-mail. An RRN of 0
will
NEVER exist. We just assume that the next number to 0 will be 1. But
if
you
are trying to access something that will NEVER exist, how is IBM to
process
it?


-- 
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.