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 |
Why we create the Physical File Member?
1. How can I create a LF using crtlf command based on a particular member in a multimember PF? Where I have to specify the member name? 2. How to differentiate between the types of join from a Join logical file DDS. Is it possible to have different types of Join Logical files? 3.Any performance difference between Opnqrf and Embedded SQL? When I should prefer Opnqryf and when SQL? 4. I know access path is the path chosen by the program to retrieve data. It can be of keyed access path or arrival sequence. *IMMED- *IMMED description says access path is updated each time record is added or deleted from a member. - What is updating here? *REBLD - The access path is completely rebuilt each time a file member is opened. The access path is maintained until the member is closed, then the access path is deleted. - I am not able to understand this completely. Could anyone explain these more clearly? 5.What is the purpose of using activation group. I know it is a resource allocator, but other than this any other benefits of using an activation group?
what is the purpus of the chain and setll and setgt ?
what is open data base command
1 Answers Active Brains, Cognizant, CSC, CTS,
how to update physical files using normal logical file
what is multiple member pf
pls anyone explain about compile time array,pre run time array run time array
A pf containing 100 records... my query is how to display from 11th record in the pf?
Is Constent can be define as a key field?
Which keyword is used both in subfile and subfile control record format of a DSPF?
Hi, Please give the answer to this question? I have Phisical 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?Please give me answer?
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.