if i have three programs progA,progB and progC .now i call
progB from progA. but the progB does not exist . now i want
to call progC instead of starting dump. how can we achieve
this.

Answer Posted / cagatay azkin

In ILE environment, when you call programB, define call with
(E) and set the indicators (position 73 and 74 I guess)

Later on, use some %built-in functions such as $error and
%status to check.

If there is an error, you can take an action in*PSSR error
subroutine or by checking the indicator in calc spec to
whatever you want.(in this case, you need to define it in INFSR)

For more detail, you can refer ibm's ile rpg reference book.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2063


How many program bind in one module....

2139


Explain mdt?

676


What is a record lock error?

1282


How to declare the pull button in AS/400..

1893






what are the key words you must use when using a subfile?

700


what is the difference between do while and do until?

728


How to select highest score of each subject or how to select highest income of every month?

1305


What is the purpose of record level identifier?

739


What is file identifier where we can use?

662


what is the rpg system?

680


explain sflclr, sflend, sfldlt, and sflcsrrrn?

900


how do I preserve and clean the array?

685


How would display prime numbers using CL program?

5701


What is ment by record level identifier?

670