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
describe the difference between the dowxx and douxx operations?
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
what are the two record formats a subfile contain ?
which cl command can be used at program execution to redirect the file named in an rpg program?
What Does Lokup Does In Tables & Arrays?
how to get the cursor position?
what is the maximum number of subfiles that can specified in a display file ?
why do we use readc? What is sflnxtchg?
how to run other job when one job is active?
what is the use of jdftval in join logical file?
What is compiler directive in as400? Give example of compiler directive.?
i am using non join multiple format my 3 database file is like that pf97 R REC ENAME ETENNO ESTATUS K ENAME pf98 R REC1 ENAME ESAL K ENAME PF99 R REC3 ENAME CRDCARD EID K EID & MY NON JOIN LOGICAL FILE IS ALSO SAME EXCEPT RECORD NAMES BEFORE I TRIED WITH 2 FILES SO ITS SAYS ERROR I.E.(Key field attributes must be same as for previous formats. ) SO I CHANGED KEYFIELD ACCORDING TO PF SO ITS WORKING BUT AFTER ADDING 3 FILES ITS SAYING SAME ERROR . I DONT KNOW I NEW IN AS400 PLLZ HELP ME I HAVE ONE MORE QUE. CANT BE USE DIFFERENT KEYFIELD (NOT ACCORDING TO PF) IN NON JOIN LOGICAL FILE.
name few ibm supplied libraries?
What is the difference between non-join logical files and join logical files?
when should I use method get, and when should I use method post in my cgis?