Ok I am about to embark on a long conversation with everybody.
I am into doing procedures but they are more or less just my replacement for subroutines, coded within the main program.
Today I downloaded a routine and it was a mainline and a module.
So I create the module, create the service program, then create the main module then create the program.
All fine and dandy. Alot of create this create that, bind this bind that.
If I had of put the procedure within the main program then just compile the program it would have done the same thing and saved me alot of time.
So now the discussion.
a) What are the benefits for creating module/service program and main program over just coding the procedures all with the same main program?
AND
b) What's the difference/benefits if I create a module as opposed to a called program? (none that I see)
Called program:
1) I can change that called program and never have to worry about the programs that call it (save and except if I change the parms).
2) If I use a module, don't I have to recreate/rebind all the mains if I change that module (all that extra work).
3) in most of the environments I work in, the user nor the performance would see any difference.
4) same amout of coding wheather it's a module or a subprogram, just extra work binding it all together.
Please educate me then maybe I can see the benefits.
Thnx and have a good weekend.
I am into doing procedures but they are more or less just my replacement for subroutines, coded within the main program.
Today I downloaded a routine and it was a mainline and a module.
So I create the module, create the service program, then create the main module then create the program.
All fine and dandy. Alot of create this create that, bind this bind that.
If I had of put the procedure within the main program then just compile the program it would have done the same thing and saved me alot of time.
So now the discussion.
a) What are the benefits for creating module/service program and main program over just coding the procedures all with the same main program?
AND
b) What's the difference/benefits if I create a module as opposed to a called program? (none that I see)
Called program:
1) I can change that called program and never have to worry about the programs that call it (save and except if I change the parms).
2) If I use a module, don't I have to recreate/rebind all the mains if I change that module (all that extra work).
3) in most of the environments I work in, the user nor the performance would see any difference.
4) same amout of coding wheather it's a module or a subprogram, just extra work binding it all together.
Please educate me then maybe I can see the benefits.
Thnx and have a good weekend.
Comment