how can a procedure will be added in to a srvpgm
Answer Posted / 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 |
Post New Answer View All Answers
what is the difference between normal upddta to pf and updating using dfu program?
name few ibm supplied libraries?
how to write *pssr ?
what is term cua , saa?
In Which Specs Arrays, Tables & Constants Are Defined?
What is a query can be displayed without saving it?
What is the as400 called now?
how to define global parameter in ile ?
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
What are the different opcodes used for file operation on a subfile in a rpg pgm?
how can we run a batch job?
is it there an easy way to determine if an html section is available to issue a wrtsection upon?
how many printer files can be defined in f specs ?
define the rcvf command?
how can database records be read without lock ?