Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
FS111
Hey y'all.. Hopefully a really stupid question with a really simple answer?
I have a table that I've Selected (Basic+) and am Readnexting through. for some reason, when I get to the end of the list, I get a message "FS111 No More Records Available". I'm doing the same thing in a number of other places, but this is the only one generating the message, and it's causing the process to hang until someone presses or clicks something.
Why would I be getting this in one situation and not in others? Is there a way to prevent the message from displaying?
Gratzi!
I have a table that I've Selected (Basic+) and am Readnexting through. for some reason, when I get to the end of the list, I get a message "FS111 No More Records Available". I'm doing the same thing in a number of other places, but this is the only one generating the message, and it's causing the process to hang until someone presses or clicks something.
Why would I be getting this in one situation and not in others? Is there a way to prevent the message from displaying?
Gratzi!
Comments
This is part of a larger process that is supposed to run uninterrupted. I can't have it pause for user input.
Any more suggestions?
Thanks!
Thanks for the help!
eof = 0
call rlist('SELECT CONTRACTS',4,'CONTRACTS','','')
call activate_save_select('CONTRACTS')
loop until eof
readnext ctid then
reado ctrec from ct@, ctid then
|
|
end
end else
eof = 1
@file_error = ''
end
repeat
I started doing a Basic+ Select. Don thought the problem was with an unresolved select. I tried doing an rlist('SELECT CONTRACTS',5,'','',''), but that also generated the FS111 at the end of the Readnexts. Actually doing the save list and activate also brings up the FS111. Setting @file_error is the only thing that has worked.
You are trying to read a non existant record to get your EOF status (Which I what I suspected.
Try:
Loop
readnext ctid else Eof=1
until Eof
reado ctrec from ct@, ctid then
|
|
end
repeat
@Michael an FS111 error is actually normal when the cursor is exhausted. I was operating under the assumption that your list was getting exhausted prematurely. So now I'm questioning why you are seeing a dialog in the first place. I never see an FS111 dialog although I get FS111 conditions all the time. I see that you have a GUI running this process. Have you tried running your code without using this GUI just to see if the error displays? Do you have some process that checks Get_Status() or @FILE_ERROR and displays the error message as a result?
I haven't been checking any status or errors until now. I'm just trying to process through the entire table.
For now I can just stick with setting @file_error to null. It is a great mystery though.
Thanks guys!