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


Please Help Members By Posting Answers For Below Questions

how can we run a batch job?

728


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?

576


What Does 'sr' In Columns 7-8 Of C Specs Mean?

1058


How do you check object lock

364


describe the difference between the dowxx and douxx operations?

1146






how to define global parameter in ile ?

625


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

1148


when are the referential constraints executed?

622


Explain The Keywords Edtcde & Edtwrd?

829


when is a tag statement used in rpg?

1346


how to validate input values in display file ?

663


how to run other job when one job is active?

597


where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1107


how can I control from my cgis the cache of a remote browser?

669


what is the purpose of dynslt keyword?

1024