I need a way to check to see if a text file is locked on the IFS in an RPG program. I am running the following command in the rpg program: ReturnInt = Open(%Trim(EntryPath):O_RDONLY+O_SHARE_NONE);. When I do this for an excel file the returnint comes back with a -1 if the file is locked. However if...