RPG400 Interview Questions
Questions Answers Views Company eMail

What hapens when we use CPYF command to copy a LF? On which PF will it be dependent???

HSBC, Systime,

7 15877

what is edit word and edit code

Cap Gemini,

1939

How do I link an existing logical file to it's Physical File without recompiling?

2 7657

which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?

1 10592

what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?

IBM, Patni,

2 13504

Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

1 4126

Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.

Voltech,

1 4794

we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do tht job with in 3hours.........? so plz post ur answers

Cap Gemini, IBM,

8 11320

What is the length of Signature?

UST,

3 6683

How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program

UST,

1 7730

what is ment by "MDT"

TCS,

2 6533

what is file identifier wher we can use

IBM,

1 5069

what are the types of identifers

IBM,

2 6026

Why we cannot call a service program? If I add a PEP can i call the service program?

DELL,

1 6648

1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?

Virtusa,

4 9366


Post New RPG400 Questions

Un-Answered Questions { RPG400 }

is this a rpg channel?

656


what is kids-rpg?

643


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

14053


do you use message subfiles? What are the necessary keywords required coding a message subfile?

657


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

1258






Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2021


how do you use commitment control in rpg?

710


How would display prime numbers using CL program?

5645


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2237


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

693


How many program bind in one module....

2082


How to handle duplicate error handling in RPG?

1635


what was the robotech rpg?

655


what is the rpg system?

644


what is file information data structure?

1316