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

How do you grant authority?

1 Answers  


WHAT IS FERERENTIAL INTRIGRITY ?

0 Answers  


what is join logical file?

1 Answers   IBM,


What is the difference between production library and test library ?

1 Answers  


what is the purpose of the indara keyword?

1 Answers   IBM,






how do you read data area in an rpg program?

1 Answers   IBM,


explain the use of dftwrt display keyword?

1 Answers   IBM,


describe the difference between the dowxx and douxx operations?

1 Answers   IBM,


Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

0 Answers  


What is dynslt?

0 Answers  


What is the use of SDA ?

1 Answers  


what is the use of data structures?

0 Answers   IBM,


Categories