Hi ! guys ..
i created a service program ,,, code as under
name SUBMOD1
where it take input a value and multiply by 40 and return
and caller program name subpr1 as below
and complied caller by .. bind service program submod1
program is working fine ,,
but as i changing the code of service program and replace the value 40 to 45
and again compliing service program
after that i run program subpr1
i am getting result 400 again but ist should be 450
as i understand that when we use service program
then caller program need not to re- comile and bind .,,
but in my case again i had to compile caller program ..
even program is running after deleting the srv program object
pls guide me ,,
where i m wrong
thanks
regards
i created a service program ,,, code as under
name SUBMOD1
Code:
HNOMAIN dcvtfc pr 10 2 d amtrs 10 2 VALUE c pcvtfc b EXPORT dcvtfc pi 10 2 d amtrs 10 2 VALUE c return amtrs*40 p e
Code:
CRTRPGMOD MODULE(SUBMOD1) SRCFILE(Qyogrnd) CRTSRVPGM SRVPGM(SUBMOD1) EXPORT(*ALL) ACTGRP(*CALLER)
Code:
dcvtfc pr 10 2 d amtrs 10 2 value d damtrs s 10 2 c eval amtrs=10 c eval amtfc=cvtfc(amtrs) c amtfc dsply c c seton lr
Code:
CRTRPGMOD MODULE(YOGESHLIB/SUBPR1) SRCFILE(YOGESHLIB/Qyogrnd) CRTPGM PGM(SUBPR1) BNDSRVPGM(YOGESHLIB/SUBMOD1)
but as i changing the code of service program and replace the value 40 to 45
and again compliing service program
after that i run program subpr1
i am getting result 400 again but ist should be 450
as i understand that when we use service program
then caller program need not to re- comile and bind .,,
but in my case again i had to compile caller program ..
even program is running after deleting the srv program object
pls guide me ,,
where i m wrong
thanks
regards
Comment