IBM AS400 Faq
IBM AS400 Faq
w
ie
rv
te
In
IBM AS400 Interview Questions And Answers Guide.
io
st
ue
Question # 1
How to search particular records from the database file in RPG?
Suppose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular NAME field. How can we do the above using SEARCH
criteria other than using the IF cond?
er
w
ns
A
Answer:Actually the file ABCD may have the record format name is
same as that of the file name. That is the reason why u r
getting this error.
RPGLE wont allow to declare a file with same name as record
format name.
So, to solve the problam u can change the record format
name other than the file name.
OR
U can use the RENAME keyword in the file specification to
change the record format name.
ns
Question # 2
Explain this error: "All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored."?
s.
Question # 3
What is the difference between ITER and DO? We know both are used to execute set of statements repeatedly, but what is the main difference?
Question # 4
What are the commands that can be executed in CLP but not in RPG? Why?
Answer:All RTV* commands can be executed at CLP but cannot be
executed at RPG.
View All Answers
Question # 5
Why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different?
Answer:Copyright http://InterviewQuestionsAnswers.org
Page 3/6
w
ie
rv
te
In
Question # 6
In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening?
Answer:This will happen if there is any duplicate records in
physical file..
View All Answers
Question # 7
What is difference between rename and prefix?
ns
io
st
ue
s.
er
w
ns
A
Question # 8
Suppose 4 persons a, b , c , d have to go to concert which will held in 17 minutes. there is a bridge which only 2 persons at a time can cross. its night and they have
only one flashlight with them. Flashlight cannot be thrown. one person should return with the flashlight
all 4 person have different speed.
a = crosses bridge in 1 min.
b = crosses bridge in 2 min.
c = crosses bridge in 5 min.
d = crosses bridge in 10 min
how can they all reach in time?
Ex- suppose a and d crosses bridge which will take 10 mins and then d returns back with a flashlight which will make 20 mins and mission is failed.?
Question # 9
HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS. I KNOW THE STEPS FOR BATCH EBUGGING, BUT IM
CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE. SO HERE ALSO DO SAME THING OR ANY OTHER
WAY?
Question # 10
How to retrieve RRN value in RPGLE program?
Answer:We can retrieve RRN value in RPGLE program by using INFDS
Copyright http://InterviewQuestionsAnswers.org
Page 4/6
w
ie
rv
te
In
ns
io
st
ue
Q
G
s.
er
w
ns
A
Copyright http://InterviewQuestionsAnswers.org
Page 5/6