How can we handle errors in RPG?
Answers were Sorted based on User's Feedback
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 |
Answer / raghav
We can also handle exception using Montier, %Error in RPGLE programs
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
What is the purpose of the chain and setll and setgt?
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?
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.
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 ?
how to restrict upon adding the data for field reference file in DB400
What is the interactive job? What is the batch job?
How many max. Record format a logical file have?
How to read a pf in reverse(from last record to first) using cl?
I want to change the attribute of field or want to add new field in existing PF but condition is format level identifier should not change, is it possible?
CRTDTA AND CRTARA should be used along with?
What is the primary file?
What is open data path? And what is the difference between access path and open data path?