Latest IBM AS400 Interview Preparation Guide
Download PDF

IBM AS400 frequently Asked Questions in various IBM AS400 job Interviews by interviewer. Get preparation of IBM AS400 job interview

25 IBM AS400 Questions and Answers:

Table of Contents:

Latest  IBM AS400 Job Interview Questions and Answers
Latest IBM AS400 Job Interview Questions and Answers

1 :: What is difference between array and multi dimensional data structure?

Array is collection of similar data type where as multi occurrence ds can be
combined like number as well as char.

2 :: Calling program in rpg or rpgle a to b to c explain the scenario?

No Answer is Posted For this Question
Be the First to Post Your Answer Now

3 :: What is difference between packed decimal and zoned decimal?

No Answer is Posted For this Question
Be the First to Post Your Answer Now

4 :: What is device error in as400?

No Answer is Posted For this Question
Be the First to Post Your Answer Now

6 :: What is difference between read c and sflnxtchg?

READC is used to read the changed records in the subfile. But the catch is, it cannot read the same records twice. To overcome this situation, use SFLNXTCHG.

8 :: How you read last record from subfile?

No Answer is Posted For this Question
Be the First to Post Your Answer Now

9 :: How to display blank subfile in ibm as400?

While loading the sub file we can simply increase the value of rrn or we can do this by using SFLINZ

10 :: Which sql keyword is use to see data from physical file member?

No Answer is Posted For this Question
Be the First to Post Your Answer Now

12 :: What is testn opcode will do?

Testn opcode will the check data type in result field like if we have result field is character then only character data type will move to this otherwise it will through the error

13 :: How to display blank subfile?

we suppose to select SFLDSPCTL with N option in SFL.
EX : goto strsda - select sflctl take opt 8 and then enter - select all general keywords with perameter Y and then next window will open there we can see the SFLDSPCTL, Here we can follow above steps.

14 :: What is difference between command attention & command function?

Command attention will not return any data from the screen to the program. Command function returns date from the screen to the program.

15 :: What is difference between procedure and function?

No Answer is Posted For this Question
Be the First to Post Your Answer Now

16 :: How to retrieve RRN value in RPGLE program?

We can retrieve RRN value in RPGLE program by using INFDS

17 :: 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?

it is also normal process like as batch job steps...
when we found job in MSGW using WRKSBMJOB,simply we can enter into job log using 5 option.
after we start at command line.
step1-> STRSRVJOB jobnum/jobname/user
step2-> STRDBG pgmname
when we press enter,the control will directly goto
the error occurred line,here we can change any values directly using EVAL then after press F3,it will sho wjob log screen,then again press f3 to come to MSGW screen.here press 7(display message screen) to continue the execution of batch job we press G(continue).then it will execute remaing steps without abnormal ending the job.

19 :: What is difference between rename and prefix?

The RENAME keyword allows you to rename record formats in
an externally described file. The external name of the
record format that is to be renamed is entered as the
Ext_format parameter. The Int_format parameter is the name
of the record as it is used in the program. The external
name is replaced by this name in the program.

To rename all fields by adding a prefix, use the PREFIX
keyword.

21 :: Why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different?

In RPGLE if you want to declare the same file in more then
once mode(read/write/update)in this case you can override
the file with different name and declare the same file with
the overriden name.
for example:
In RPGLE if you want to open a file A in two different mode
one is Read and other is Update then you can override the
same file with two different name may be AA and AB and then
declare in your RPGLE program.

22 :: What are the commands that can be executed in CLP but not in RPG? Why?

All RTV* commands can be executed at CLP but cannot be
executed at RPG.

23 :: 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?

There is no comparison between DO and ITER as DO statement
is an looping statement and ITER is an branching statement
like LEAVE.
When I use ITER with some condition inside a DO-ENDDO loop,
when that condition occouerd, ITER transferred the control
to ENDDO not out of the loop like LEAVE ie it just skip the
execution of statements between ITER and ENDDO.

In one statement we can say that ITER in RPGLE is same as
CONTINUE in C.

24 :: Explain this error: "All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored."?

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.