IBM RPG400 Question:
Download Questions PDF

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?

Answer:

Using SQL, we can set second field value as '0'

Download IBM RPG400 Interview Questions And Answers PDF

Previous QuestionNext Question
If my rpg program has a date field, What extra care I have to take while compiling that RPG program?
If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?
Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF?