gtpd1m0nDatabase Reference

Programming Notes for General Files

The following describes the file addressing formats that can be used to read a general file data set (using FIND or FIND SPECIAL).

Note:
In these descriptions, the pseudo module number is defined as the sum of the starting general file module number and the number of the data set the user wants to access. For example, if the TPF system is generated to start general file pseudo module numbers at 010 (see the GFMOD parameter of the RAM macro in TPF System Generation), then general file data set number 03 will be pseudo module number 013. The module number that the user specifies will be the hexadecimal equivalent of 013, that is, 0D.

Processing a Relative Record Number Request

The parameter mmgggggg that must be provided for a general file relative record number request has the following format:




If the calling segment is processing a relative record request (as in the ZDFIL mmgggggq format):

Processing an Extended MCHR Request

If the calling segment is processing a request for an extended MCHR address (as in the ZDFIL mmmmcccchhhhrr format):