18.08.2013 Views

Programming Reference Manual - Public Support Login - Unisys

Programming Reference Manual - Public Support Login - Unisys

Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using PCFP with FORTRAN<br />

Your FORTRAN program must include one of these procedures for each different PCFP<br />

function that it calls.<br />

• FP$RTN$yyyy<br />

This generic procedure name represents the procedures describing the repeating<br />

information entries returned by PCFP functions. There is a procedure for each<br />

unique entry, and, in cases where both a long and a short form of the entry can be<br />

returned, a procedure exists for each case. The names of the procedures for the<br />

long and short forms of the return entries are identical, except for the last character<br />

of the name. The last character is either the letter s, which designates the short<br />

form of the entry, or the letter l, which designates the long form of the entry. Your<br />

FORTRAN program must include the appropriate procedure for each PCFP function<br />

that returns repeating information.<br />

The following procedures must be included in a FORTRAN program that calls the<br />

FP_ACQ_ELT_INFO function of PCFP.<br />

INCLUDE FP$DEFS<br />

INCLUDE FP$ERRORS<br />

INCLUDE FP$SFILE$ID<br />

INCLUDE FP$ACQELTINF<br />

INCLUDE FP$RTN$ELTL<br />

Note that the last INCLUDE statement brings in the long form of the procedure that<br />

defines the repeating information returned by this function.<br />

13.2. Naming Conventions<br />

For FORTRAN, the names of all constants, packets, and items within the packets begin<br />

with the characters FP_. If you avoid defining names beginning with these characters in<br />

your programs that call PCFP, you will have no conflicts between the names that you<br />

define and the names defined for PCFP. As with all names in FORTRAN, there is no<br />

distinction between uppercase and lowercase letters.<br />

13.2.1. Function Names<br />

The function names used in FORTRAN programs are identical to the function names<br />

given in Sections 3 – 10, except that the FORTRAN function names are all prefixed with<br />

the character sequence FP_. The FORTRAN procedures supplied with PCFP and the<br />

examples in this section follow the convention that function names appear in all<br />

uppercase letters.<br />

7830 9796–013 13–3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!