RPG400 Interview Questions
Questions Answers Views Company eMail

Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 10168

How can we receive values from a called procedure in CL?

IBM, NTT Data,

1 4282

How can we receive values from a called procedure in RPG?

1 4423

Can we found a record existance in a file w/o reading the file?

Traitsys Technologies,

6 7903

what is the procedure and explain about real time scenario.

Adhoc Technologies, Hanuman Automation, HSBC, IBM,

1591

How to handle duplicate error handling in RPG?

1858

Delete FileName at first statement in RPG.

1 2301

suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?

1 3473

why we do STRSRVJOB in batch debugging in as400

1 5479

suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 3768

How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1673

How to select highest score of each subject or how to select highest income of every month?

1416

How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

2 6781

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 3505

What is a record lock error?

Wipro,

1388


Post New RPG400 Questions

Un-Answered Questions { RPG400 }

1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

612


is this a rpg channel?

796


what is kids-rpg?

797


How can we override a file during runtime in rpg?

822


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

14554






thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2010


which program rpg or cl is efficent to update a transaction onto a database file and why ?

872


How to declare the pull button in AS/400..

2032


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

831


what is the difference between do while and do until?

845


what is the use of sflnxtchg?

925


How can we know running job is batch or interactive?

774


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1673


can I touch the array during treatments?

863


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3449