A very simple remote query task is implemented. We have a front-end
(Client) application that uses DTS to make a procedure call to remote
system named REMOTE (a DTS logical node name). Our back-end (Server)
application (a DTS Handler subroutine) simply returns a "hello" message
through DTS to the calling front-end. The front-end application then
displays the received message on the user terminal. DTS transaction
type 1 (inquiry) is used because we want the response data back in
real time.
Both front-end and back-end modules of this application are listed
in four different programming languages: C, PASCAL, FORTRAN and
COBOL, using the DTS native YFIAPPC interface.
Due to DTS platform-independent Application Programming Interface,
the modules can be located on any of the supported DTS platforms.
Slight modifications may be necessary because of language implementation differences
between different architectures, especially on languages other than C.
The power of an object-oriented approach, using DTS message class library interface
is demonstrated by the same example application (front-end only) written in
Java language, for the DTSJAVA package. In Windows environments ultimate easiness of programming
can also be achieved by using the DTS component interface. The example application
front-end is also implemented here in Microsoft® Active Server Pages (ASP) scripting.