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 / raja

By Using *pssr we can handle the error and take dump of
that.

For Example:

call 'Nxtpgm'(if object is not Found it take
Nxt tag dump and call the nxtpgm1)
Call 'Nxtpgm1'


*pssr Begsr
Dump(A)
Goto Nxt
Endsr

seton lr

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

673


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

807


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

658


which program rpg or cl is efficent to update a transaction onto a database file and why ?

722


What is the difference between iter and do?

651






1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2352


how do I declare a minor?

699


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1294


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

470


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

493


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

480


Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

701


What is a record lock error?

1248


How many program bind in one module....

2097


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

1871