Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what is the difference between normal upddta to pf and updating using dfu program?

1264


name few ibm supplied libraries?

1994


how to write *pssr ?

1026


what is term cua , saa?

1529


In Which Specs Arrays, Tables & Constants Are Defined?

1115


What is a query can be displayed without saving it?

1047


What is the as400 called now?

937


how to define global parameter in ile ?

1117


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2523


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1734


how can we run a batch job?

1101


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

924


how many printer files can be defined in f specs ?

1556


define the rcvf command?

1639


how can database records be read without lock ?

1847