I'm on V6R1, using WDSCi 7 to program in RPG IV. I've accumulated a number of functions that I use in quite a few of my programs, and I was thinking it might be a good idea to go ahead and place them as subroutines (may be wrong terminology) in a copybook. But, having done some research, there are downsides to using a copybook.
So, what should I use? I've never done this kind of thing on the AS400 before, so I'd like to do it right the first time. :)
I also read about modules, but they seem very unwieldy to use since you appear to have to use a different compile command and I don't even begin to understand how the syntax-checking could work...
And then there is the whole service-program idea. My head still hurts after the hoops I had to jump through to make the last one work.
Maybe I have a lot of misinformation and there really is a simple way to do what I want to do. Please help me make the right choice! Thanks for your help!!