Hi friends,
I am using a load all subfile , and currently i am in in
the third page of the subfile , from third page i have
selected a record and called some other program .on
returning, subfile is being loaded from the frist page. so
can any one kindly suggest me in retaining my third page
after returning. i.e loading from third page.

Answers were Sorted based on User's Feedback



Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / karthik

Get the rrn when the record is selected and while returning
back to the load subfile, user this rrn for display or load
records starting from the selected rrn. Let me know if u
need more clarity

Good luck!!!

Karthik

Is This Answer Correct ?    12 Yes 1 No

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / tthomas

Its just because ur rrn is getting initialized again.. get
the rrn of the first record in the third page and display
it.

Is This Answer Correct ?    7 Yes 0 No

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / guru

Hi Friend,

Use SFLRCDNBR to achieve this in load all subfile or if you
are using load on demand (SIZE > PAGE) then clear the page
every time and load the specific page you want.

Is This Answer Correct ?    7 Yes 2 No

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / mithun paul

Before call the program store the rrn and after retuning
from the program move that rrn number to variable of
SFLRCDNBR and write the subfile. It shows the subfile in
that particular page not the first page.

Mithun Paul
KMG Infotech, Kolkata

Is This Answer Correct ?    4 Yes 0 No

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / ld123q44

Just before you make the call make a note of (a) the
relative record number of the first record on the page and
(b) the relative record number of the record you are making
the call from.
Now, when you to redisplay the page after the call you can
start the display either from rrn from (a) from rrn from (b).

Is This Answer Correct ?    2 Yes 0 No

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / jay

you may use SFLCSRRRN to know the record in which the
cursor was lying when the control came to program

Is This Answer Correct ?    3 Yes 1 No

Hi friends, I am using a load all subfile , and currently i am in in the third page of the subfi..

Answer / pankaj

You have to get the SFLRCDNBR number when the record from
subfile is select. and when you comeback to it will show
third page as a first page and by doing page up/down you
can see other records.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More RPG400 Interview Questions

We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

0 Answers  


How to create a key field for a logical file inside RPG?

4 Answers   HSBC,


1) How to retrieve RRN through RPG ? 2) How to pass parameter by value ? 3) How to trap the error through the RPG/400

10 Answers   IBM, Tech Mahindra,


Interviewer asked me write down DDS for load all subfile .can anybody write dds

0 Answers  


When it is desirable to describe files Internally?

0 Answers  






1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


what is kids-rpg?

0 Answers   IBM,


Hi guys, anybody know How RPG/400 code can be converted to RPG IV code with a single command?

1 Answers  


i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?

1 Answers   IBM,


I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


Categories