I am a beginner learning RPGLE and working with subfiles. I have attached an image where the red highlighted area is designed using SFLCTL, and the blue highlighted area displays data fetched from the physical file and loaded using SFLDATA.
I am using RCBNBDR(SFLRCDNBR(Cursor)) to handle record positioning.
The issue I am facing is that the cursor initially focuses on the first record of the subfile (Option 1) in the blue highlighted area instead of the option field in the red highlighted area above. If I remove RCBNBDR, the cursor correctly points to the main option field, but I need both functionalities: RCBNBDR for handling records and the cursor initially pointing to the main option field.
How can I achieve this?
Home Page
