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

What are the different types of messages in CL?

1 Answers  


I have SQLRPGLE program in which there are some update statements which executed correctly. there were no errors run time. Once the program gets over, the file was not updated with the new values. What might be the reason?

2 Answers  


Determine the value of the result field a. Cost = $110. 00 b. Tax = 20% c. MarkUp= 05% d. Sale = 10%

1 Answers  


Logic cycle

1 Answers  


maximum number of subfiles that can defined in a rpg program for one display file is?

1 Answers   IBM,






HOW CAN WE ENTIRE OBJECTS& IT'S TYPE IN PGM?

1 Answers  


how can you execute a command from within an rpg program without calling a clp program?

1 Answers   IBM,


WHAT IS THE DISPLAY CMD FOR DATAQ, HOW IT CAN BE USED?

2 Answers  


How to know the number of records in a pf through clp program?

7 Answers   Bank Of America,


What is the difference between /copy and /include in RPGLE?

1 Answers  


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

1 Answers   IBM,


what is logical file?

0 Answers   IBM,


Categories