I have a very simple program which is reading records from a work file for writing to a subfile but the *Loval Setll is positioning to the last record in the file instead of the first. When I do my subsequent READ, I am getting %EOF. I have checked %ERROR (0) and %STATUS (0) after the SetLL but still am getting positioned to the last record. The file is not defined with descending keys so I am baffled as to why this is happening. Would someone please help? I am including the Fspec and Cspecs.
FARWRKTRN UF A E K Disk UsrOpn prefix(awt)
C *Loval SetLL ARWRKTRN
Thank you in advance for your assistance!
August 22, 2008 4:17 PM
August 25, 2008 12:49 PM