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...


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."


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More RPG400 Interview Questions

I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?

4 Answers  


HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS.I KNOW THE STEPS FOR BATCH DEBUGGING,BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE.SO HERE ALSO DO SAME THING OR ANY OTHER WAY,PLEASE HELP ME....

1 Answers   HCL, Mind Tree,


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?

1 Answers  


One of the job in subsystem is in Running status,expected time to complete this job is 2 minutes. But from last 5 -10 minutes this job is still in running status....What are the possible reasons...and What are the actions i need to perform to check this...?

4 Answers  


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,


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

2 Answers   iGate,


The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


How to search particular records from the database file in rpg?

2 Answers  


Why did we give STRSRVJOB while debugging batch program

3 Answers   HBL Power Systems,


Categories