How can we handle errors in RPG?

Answers were Sorted based on User's Feedback



How can we handle errors in RPG?..

Answer / as400 techee

First and foremost handling the errors in RPG are by using
Indicators, Subroutines like *PSSR, system defined data
structures like file information data structure(INFDS),
program status data structure (PSDS)

Is This Answer Correct ?    7 Yes 0 No

How can we handle errors in RPG?..

Answer / raghav

We can also handle exception using Montier, %Error in RPGLE programs

Is This Answer Correct ?    3 Yes 0 No

How can we handle errors in RPG?..

Answer / srujana

We can handle errors in RPG through PSDS:Program status data structure and INFDS: File Information data structure.

Is This Answer Correct ?    3 Yes 1 No

How can we handle errors in RPG?..

Answer / srisailam

BY USING OPERATOR EXTENDER E
EX:READ(E)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB400 Interview Questions

What is the primary file?

0 Answers  


How can i retrieve city while my i have one field address length 60 but i don't know what where is city in this field ?

4 Answers  


how to know total no of records in pf with out using sql??????

3 Answers  


what is the intractive job? what is the batch job ? how to change the batch job to interactive job?

2 Answers   Four soft,


In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.

0 Answers   Nous,






What is the difference between access path and open data path?

0 Answers  


How can we handle errors in RPG?

4 Answers  


what is the difference between adding keys & constraints into a phisical file

6 Answers   HSBC,


When we use any keyword like FIFO,LIFO, at file level but whenever we check by runqry we couldn't find answer in FIFO,LIFO,FCFO etc so how we check the answer.

2 Answers  


Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?

0 Answers  


I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?

0 Answers  


How many maximum record format a logical file have?

0 Answers  


Categories