Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

common procedure

Status
Not open for further replies.

armandprog

Programmer
May 21, 2002
6
BE
hello, i am programming in powercobol.
Is it possible to make a common procedure (just for calculate) and use it in several
form?.
Thank's
 
Sure, just code around the procedure (e.g. something you PERFORM) to make as if it's a function in terms of other languages. Document it well, most certainly. Something like: "Expects INPUT-VAR1, and INPUT-VAR2 as input, returns answer in OUTPUT-VAR1". Design the procedure accordingly and you can reuse it multiple times.

 
hello ,
In powercobol you can make a perform in a procedure, but it is not what i try,

I just want to make a procedure using in several form?

Thanks
 
So, you want a subroutine CALLed (with parameters) from another programs ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top