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

There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.

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  


CRTDTA AND CRTARA should be used along with?

2 Answers  


How to retrieve a physical file after deleting that?

0 Answers  


How many maximum record format a logical file have?

0 Answers  






When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?

0 Answers  


How to find the list of source physical files in a library?

0 Answers  


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

2 Answers   Four soft,


what is error handling concepts in cl

3 Answers   Active Brains,


How to read a pf in reverse(from last record to first) using cl?

0 Answers  


Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?

2 Answers  


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

4 Answers   HSBC,


Categories