When is it best to compile a program as a module and when is it best to compile as Service program?
I know that copybooks, modules and service programs encourage reuseability of code and that copybooks are members that can contain reuseable D-specs and that you don't compile copybooks.
Can you also put procedures and subroutines in copybooks? If you can then what is difference between copybooks and the other two?
When compiling modules I also use CRTPGM because it was instructed on the source code but I never understood why.
I know that copybooks, modules and service programs encourage reuseability of code and that copybooks are members that can contain reuseable D-specs and that you don't compile copybooks.
Can you also put procedures and subroutines in copybooks? If you can then what is difference between copybooks and the other two?
When compiling modules I also use CRTPGM because it was instructed on the source code but I never understood why.