my name ist Dieter and i come from Germany. Please excuse my poor English. I am developing in RPG for more than 20 years. I have spoken with many programmers and consultants about compiling RPG programs. Till this day i did not find a good solution for the following:
RPG service programs need to be compiled in an other way than "normal" RPG programs. In PDM you would take "14" to compile a normal program and you would use "15" to create a module of a service program. After creating the module you have to create the service program from the module. And you have to specify a lot of compile and binding options.
I think most programmers don't want to do these steps manually with PDM. I think most programmers have scripts for compiling. But the compile script has to know whether a source is a normal program or whether it is a service program. But there is no attribute for this. The source has an attribute "RPGLE" or "SQLRPGLE" but no attribute "SRVPGM". We solved this problem by beginning the source member text with "srv:" But this is only a poor vehicle. What is the suggestion from IBM? What does IBM think the programmers should do to compile programs by scripts? I have seen solutions where precompiler commands were placed in the comment area of a program header. Then a self written precompiler interprets this codes and generates a compile script. Other programmers use 3 party products (change management systems). I am wondering why IBM does not provide a good solution for those who don't want to rely on a 3 party change management system. And it is not efficient if every programmer writes his own precompiler for compiling and binding.
Maybe i have overlooked a solution?