I have a file that I'm chained to in an RPG program. More than one person accesses this program at the same time. I would like to update that file with a query when someone calls that program. The problem is if someone is already in the program it won't update the file. The code that is chained is as follows:
s1order chain orderfile
if not%found(orderfile)
eval msgid = 'UNL0055'
exsr $sndmsg
eval screenerror = 'Y'
eval *in26 = *on
endif
Is there a way to update the orderfile while someone is already in the program? Or is there a way to update that file other than query. I would like to just link the the file I'm updating from, but I can't because it isn't index.
s1order chain orderfile
if not%found(orderfile)
eval msgid = 'UNL0055'
exsr $sndmsg
eval screenerror = 'Y'
eval *in26 = *on
endif
Is there a way to update the orderfile while someone is already in the program? Or is there a way to update that file other than query. I would like to just link the the file I'm updating from, but I can't because it isn't index.




Comment