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

Answers were Sorted based on User's Feedback



how can a procedure will be added in to a srvpgm..

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

how can a procedure will be added in to a srvpgm..

Answer / shyamala

i think thru binder language

Is This Answer Correct ?    7 Yes 1 No

how can a procedure will be added in to a srvpgm..

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

how can a procedure will be added in to a srvpgm..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

Difference Between Skip Before & Space Before?

0 Answers   IBM,


what are the basic features of seu?

0 Answers   IBM,


How are the objects stored on AS/400?

1 Answers  


What is acronym of RPG?

1 Answers  


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1 Answers   IBM,


What is the use purpose of CRTCMD?

1 Answers  


What are all the compiler directive statements?

1 Answers  


what is the difference between seton lr and retrn?

1 Answers   IBM,


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

0 Answers  


how to create physical file

1 Answers  


What does SDA stands for ?

1 Answers  


what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why should we use SHARE(*YES)

2 Answers   IBM,


Categories