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 primary file?
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 know total no of records in pf with out using sql??????
what is the intractive job? what is the batch job ? how to change the batch job to interactive job?
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.
What is the difference between access path and open data path?
How can we handle errors in RPG?
what is the difference between adding keys & constraints into a phisical file
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.
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?
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?
How many maximum record format a logical file have?