is implemented as a separatehigh level language (HLL) program. Each externalfunction is attached to an access path. In general,the standard device functions are externalfunctions; for example, the Edit File function. Theonly exception is the Print Object (PRTOBJ)function that is covered in a later chapter of thistutorial.
is implemented as sourcecode within that of the calling program; in otherwords, it is implemented as a subroutine. All thestandard database functions are internal functions;for example, the Create Object function.There need not be a one-to-one correspondencebetween a function and the program that implements it.You can link functions together to create largerprocesses that become the building blocks of yourapplications; namely, several internal functions may beimplemented as a single program. In other words, afunction is a unit of specification, not implementation.The standard functions may have the followingcomponents. Note that not all function types have allfour components.
specifies the layout of the panel orreport used by the function.
specifies the processing steps thatmake up the function. This includesdefault processing and processingthat you define.
specifies default features of afunction.
specifes fields to be passed into thefunction and returned from thefunction at run time.Each of these components is discussed in this chapter.In addition to the standard functions, COOL:2Eprovides message functions, function fields, and built-infunctions, which perform low-level processing such as
Introduction to FunctionsCOOL:2E TutorialTUT 3–3