how can a procedure will be added in to a srvpgm
Answers were Sorted based on User's Feedback
Answer / kapil kumar
UPDSRVPGM add the procedure/module then use the binder
language command as below
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL(NewProc)
EXPORT SYMBOL(pgm1)
EXPORT SYMBOL(pgm2)
STRPGMEXP PGMLVL(*PRV)
EXPORT SYMBOL(pgm1)
EXPORT SYMBOL(pgm2)
ENDPGMEXP
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / syam
If a module contained in a service program changes, the old
module can be replaced with the new module using the
UPDSRVPGM command.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / nitin
I think most appropriate answer is to add new procedure or module to binder language, make sure that the new one should be added at the end.
Suppose we are adding two procedures GetDuration and LastDayOfMonth, the updated binder should be like this
STRPGMEXP PGMLVL(*CURRENT)
EXPORT SYMBOL(DayName)
EXPORT SYMBOL(DayOfWeek)
EXPORT SYMBOL(GetDuration)
EXPORT SYMBOL(LastDayOfMonth)
ENDPGMEXP
STRPGMEXP PGMLVL(*PRV)
EXPORT SYMBOL(DayName)
EXPORT SYMBOL(DayOfWeek)
ENDPGMEXP
then Update service program with export (*SRCFILE). This will added new procedure in service program without disturbing old definition and no need to recompile programs those are using service program with old or previous signature.
| Is This Answer Correct ? | 0 Yes | 0 No |
is there any way to dynamically merge other html scripts into a given html?
what is flatfile?what is the use of this file?where we can use usualy?what is the advantage of this?
What is the difference between keys of a Physical file and the keys of a logical file?
2 Answers Bank Of America, BoA,
function of DSPPGMREF?
write a pgm to read p.f using cl pgm?
what is the use of UNIQUEUE KEY WORD? what is the difference between PFILE AND REF?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
what are the different opcodes available in rpg for database access ?
How do you grant authority?
what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.
What is the use of Data Queues?
How to see all members of a file?