What is the Record Address file. How can we use it in RPG
program?
Answers were Sorted based on User's Feedback
Answer / ipsita
A record address file contains either key-field limits or
relative record
numbers of records in a DISK file. By providing these
key-field limits or relative record numbers to the program,
a record
address file tells the program the records to read from the
DISK file and
the order in which to read them. A program can use no more
than one
record address file. Record address files must be further
defined on
extension specifications.
A record address file must be an input file. If it contains
key-field
limits, it must use the DISK or CONSOLE device and can be
used only with
indexed files. If it contains relative record numbers, it
must use only
the DISK device and can be used with sequential, direct, or
indexed files.
Record address files that contain relative record numbers
are called
addrout (address output) files, and they are produced by a
sort program
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / jai
Record Address File
===================
Using this We can get records by starting records and ending
records. Example A PF has 2,00,000 records. I want to read
1,00,001 to 2,00,000 means we use record address file
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / syam
Position 18 in "F Specification" = R
A record-address file is a sequentially organized file used
to select records from another file. Only one file in a
program can be specified as a record-address file.
| Is This Answer Correct ? | 1 Yes | 0 No |
what is the difference between do while and do until?
what is ment by "MDT"
Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.
how do I declare a minor?
Hi,This is raju.Can any body give me the real experience answer for this question? 1.What is the significance of *MAP and *DROP in the CPY command?
Need a sql query: retrieve all duplicate records in table?
How do you proceed in case your active AS400 session has got disconnected suddenly, how can you get back to your session ? Is it possible??
1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?
are there any useful c runtime apis that I can call from rpg iv?
we are sending data of physical file to screen design and it is showing no record why?
Can anybody tell me, does CL/400 handle LEVEL check while running the CL program....? plz share your experience...
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."