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
how can we run a batch job?
http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?
What Does 'sr' In Columns 7-8 Of C Specs Mean?
How do you check object lock
describe the difference between the dowxx and douxx operations?
how to define global parameter in ile ?
How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz
when are the referential constraints executed?
Explain The Keywords Edtcde & Edtwrd?
when is a tag statement used in rpg?
how to validate input values in display file ?
how to run other job when one job is active?
where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?
how can I control from my cgis the cache of a remote browser?
what is the purpose of dynslt keyword?