Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

RPG400 Interview Questions
Questions Answers Views Company eMail

Assume my file has 100 records and I want to see only first 10 records. Is this possible through lf?

248

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?

1 500

What is file identifier where we can use?

231

Explain mdt?

245

What is the difference between copybooks and subprocedures in as400?

209

Can a indexed file be accessed in arrival sequence in RPG?

103

How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

128

How to write record if no field or the field are different in physical file in rpgle ?

96

When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

66

How to read a record from file where there is multiple record occurrence is available?

74

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?

100

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?

77

If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?

67


Post New RPG400 Questions






Un-Answered Questions { RPG400 }

How can we override a file during runtime in rpg?

254


How Chain operation copies the record's data to the input buffer for the program?

725


How would display prime numbers using CL program?

4872


How to call one program from another program in RPG? please help me with the code

775


What is a record lock error?

871






if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

1765


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

128


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

863


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

264


what is the difference between do while and do until?

301


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

1947


how do I do concatenation in rpg iv, like I do in cl?

275


What is ment by record level identifier?

253


Interviewer asked me write down DDS for load all subfile .can anybody write dds

586


Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

1402