+1 vote
26 views
in TPF by (47 points)

What is FACE? How do you access FACE table?

1 Answer

0 votes
by (323 points)

FACE & FACS are system programs that are used to calculate the SON address of a fixed file record.

Takes as input Decimal Record type and Ordinal Number; looks up into the FACE table for the corresponding SON address.

FACS serves the same purpose as FACE

FACS unlike FACE can calculate the SON file address with a symbolic record type and Ordinal Number

Interface :

Application Programs enter the utility Program FACE by issuing the macro call -   ENTRC FACE.

FACS is preferred over FACE.

The following is the set-up required  before calling FACE

R6 Contains the Hexadecimal Record type 

R0 Contains the Ordinal Number

R7 Address of an 8-byte field where the system file reference is to be placed.  Normally, the location of FARW  because the address must be  there before the find or file function can be called. 

Example of FACS usage

LA    R0,0          Load ordinal number

LA    R6,=CL8'#IGTSTRN'  Symbolic record type

LA    R7,CE1FA7          Load address of FARW

ENTRC FACS     Call FACS

LTR   R0,R0              Test for Error return

BZ    EXCEPT             Branch to error return

Before Call to FACE/FACS 

FARW :      

Before call to FACE/FACS

Related questions

+1 vote
1 answer
20 views
asked May 14 in TPF by Derya (47 points)
0 votes
1 answer
22 views
asked May 14 in TPF by Derya (47 points)
+1 vote
1 answer
31 views
+1 vote
1 answer
33 views
0 votes
0 answers
8 views
asked May 14 in TPF by Derya (47 points)
0 votes
0 answers
8 views
asked May 14 in TPF by Derya (47 points)
0 votes
0 answers
23 views
asked May 14 in TPF by Derya (47 points)
+1 vote
1 answer
29 views
0 votes
1 answer
20 views
asked May 14 in TPF by Derya (47 points)
+1 vote
1 answer
22 views
...