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

When it is desirable to describe files Internally?

1167


what is the procedure and explain about real time scenario.

1461


What is ment by record level identifier?

639


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

1877


how does the rpg element work?

698






what was the robotech rpg?

667


what is an online rpg?

704


are there any useful c runtime apis that I can call from rpg iv?

683


Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

1449


how can I tell when to replace the array?

686


how do you use commitment control in rpg?

734


how can you display specific subfile page on the screen in unequal subfile?

664


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

1863


how do I declare a minor?

701


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

1274