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 |
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.
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?
CRTDTA AND CRTARA should be used along with?
How to retrieve a physical file after deleting that?
How many maximum record format a logical file have?
When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?
How to find the list of source physical files in a library?
what is the intractive job? what is the batch job ? how to change the batch job to interactive job?
what is error handling concepts in cl
How to read a pf in reverse(from last record to first) using cl?
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?
what is the difference between adding keys & constraints into a phisical file