Subfile
285 pts.
0
Q:
Subfile
I am using Load All Subfile. I used Page Down key and went to 2nd page then on 2nd Page I pressed ENTER Key, then it went back to the first page of subfile.
I am using COBOL program to write the subfile.
Can anybody tell me how to remain on the same page after pressing ENTER key on Load All subfile?


Thank You in advance.
ASKED: Jul 5 2008  3:41 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
155 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Hi,

Try specifying SFLRCDNBR(CURSOR) in your DDS.

Regards,

Martin Gilbert.

Hi,

SFLRCDNBR is defined with a field (i use TOP) to carry the relative record number of the subfile record you want to display. When control returns to your program (enter or a command key) you can detect the subfile record number at the top of the current page. (file information data structure has it).

I usually set the value after the subfile is displayed.

If you edit the subfile and detect an error, you can set the relative record number of the error so the page containing the error will be displayed.

you can place the offending record at the TOP of the page with SFLRCDNBR(CURSOR *TOP)

Good Luck.
PGMBOB
Last Answered: Jul 9 2008  2:59 AM GMT by PGMBOB   155 pts.
Latest Contributors: Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0