Guardian Programmer's Guide

Table Of Contents
Introduction to Guardian Programming
Guardian Programmer’s Guide 421922-014
1 - 20
Calling Guardian Procedures From Pascal
Calling Guardian Procedures From Pascal
The PEXTDECS file makes it easy to import Guardian procedures into a Pascal
program. This file contains Pascal-coded definitions for Guardian procedure calls,
enabling you to invoke Guardian procedures as Pascal functions. To pass parameter
values to the Guardian procedure call, you simply pass the equivalent parameters to
the corresponding Pascal function.
For complete instructions on how to call Guardian procedures from a Pascal program,
see the Pascal Reference Manual .
For information on when and how to use calls to the Guardian procedures in your
Pascal program, you should continue to read this guide. Although the examples are
given in TAL, the program logic is similar for both languages.
Calling Guardian Procedures From COBOL85
All Guardian procedures that you can call safely from a COBOL85 program are
declared in the external declarations file for COBOL85. Multiple versions of this file
exist. You can specify the version of your choice from the following:
The COBOL85 external declarations file enables COBOL85 programmers to call
Guardian procedures using ENTER TAL statements.
The COBOL85 Manual provides complete instructions on how to use ENTER TAL
statements to call Guardian procedures from a COBOL85 program, with examples of
how to map COBOL85 parameters to TAL parameters.
As for C and Pascal programmers, COBOL85 programmers need to read this guide for
information about how to use the Guardian procedures.
Calling Guardian Procedures From FORTRAN
All files required by the FORTRAN programmer to access Guardian procedures are
provided with the FORTRAN compiler. Therefore, to make a Guardian procedure call,
you must declare the appropriate variables and then access the Guardian procedure
either through a function call if the procedure returns a value or through a subroutine
call if the procedure does not return a value.
For complete details on how to call Guardian procedures from FORTRAN, see the
FORTRAN Reference Manual.
For information on how to use Guardian procedures in a FORTRAN program, you
should continue to read this guide.
COBOLEX0 contains the current version
COBOLEX1 contains the current version minus 1
COBOLEXT contains the current version minus 2