Follow Our FB Page << >> 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?


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?


Explain mdt?


What is the difference between copybooks and subprocedures in as400?


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


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


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


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?


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


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?


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?


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?


Post New RPG400 Questions

Un-Answered Questions { RPG400 }

How can we override a file during runtime in rpg?


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


How would display prime numbers using CL program?


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


What is a record lock error?


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.


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


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


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


what is the difference between do while and do until?


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


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


What is ment by record level identifier?


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


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.