Philpl1jb
24570 pts. | Dec 10 2008 7:55PM GMT
You want to show the last records in the file.
1. Leave the ‘K’ off your f-spec - the file will be delivered in arrival secquence
2. Start the load at the bottom of the file
*HIVAL SETGT MyFile
3. Read records backwards from the bottom - rough code
READP Myfile
dow not %TOF(Myfile) and count < pagesize
count += 1
load and write a record to the subfile
if count < pagesize)
READP Myfile
endif
enddo
exfmt sflctl
ReadP is read previous record
this will load a page - it will appear backwards (newest at the top)
You can set pagedown to call this routine again to load the next page.






