Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 ?    5 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

How can you delete records form a file in rpg without using "Delete" OPCODE?

7 Answers  


what is kids-rpg?

0 Answers   IBM,


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

0 Answers  


RETRIVING DELETED RECORDS :- I'm frequently asked how to retrieve deleted records from an unjournaled physical file when the deleted records have not yet been removed from the file. Utility UNDEL lets you undelete records in a physical file. This public domain program is available in CISC and RISC versions, and the complete source code is available for download at: UNDEL for AS/400 Save File (RISC): http://www.as400network.com/sharewarefiles/undelris.zip UNDEL for AS/400 Save File (CISC): http://www.as400network.com/sharewarefiles/undel.zip UNDEL for AS/400 Save File (Source code): http://www.as400network.com/sharewarefiles/undelsrc.zip The utility takes advantage of the fact that deleted records in physical files are only flagged as deleted, and the record data still exists until it is overwritten or the file is reorganized with a utility such as RGZPFM. UNDEL simply reads the deleted record, then reuses the record by writing over it with the new record (thus eliminating the flag for the deleted record). Some homegrown and commercial utilities copy the file containing undeleted records to a save file, then use a program to read the save file, which contains live and undeleted records, to a file to undelete the records. The UNDEL utility is superior to the SAVF technique because there's no need to copy the file to a save file, which is especially important for really large files. When run, UNDEL displays the physical file records in their unformatted, raw text form. You can either position the display to a given relative record number or use F19 or F20 to find the previous and next deleted record, respectively. The utility also includes online help, which is almost unheard of for free utilities. Other utilities include the ability to undelete records. You can use the RTVDLTRCD command in the old QUSRTOOL (no longer supported by IBM). QUSRTOOL is now a commercial product called TAA Productivity Tools ( http://www.taatool.com ). The free file editor WRKDBF has a built-in undelete capability ( http://www.wrkdbf.com ), and several commercial file editors can undelete records. For a complete list of file editors, go to http://www.sourcebook400.com, select "Programmer Tools" under "Product Category," then select "File Editors."

0 Answers  


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


What is the purpose of PUTOVR keyword?

2 Answers  


How I can reread the physical file in CL program once the end of file reached in same CL program.

20 Answers   IBM,


what is the necessary keyword needed to scroll subfile records?

0 Answers   IBM,


what is a rpg?

0 Answers   IBM,


I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)

2 Answers   CTS,


I have two sessions S1 & S2 under this 3 jobs(say j1,j2,j3 under session S1) And 2 jobs(Say j4, j5 Under session S2)is running. How many QTEMP & how many LDA will create for the same.

9 Answers   IBM,


Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


Categories