I am wanting to start breaking out some of my repetitive code to single procs. And then call these procs with parameters in other scripts. That way when I need to make a change, I can just change it in one place.
Example: TPS1.tcl would contain the code to connect to a db and insert a line into a table. TPS2.tcl and TPS3.tcl would call TPS1 during a route UPoC.
Can someone give me some guidance on how this is done, especially with the parameters.
Thanks,
Jerry