AIPS NRAO AIPS HELP file for MAXTAB in 31DEC24



As of Sat Apr 20 7:45:53 2024


MAXTAB: Procedure to return highest table version number

INPUTS

INNAME                             Name of data file
INCLASS                            Class of data file
INSEQ              0.0      9999.0 Sequence number of data file
INDISK             0.0        15.0 Disk number of data file

          Give the two-letter code for the table type as an
          immediate argument. For example, MAXTAB('CL')

          MAXTAB is defined in the VLBAUTIL run file.

HELP SECTION

MAXTAB
Type: Procedure
Use:  MAXTAB returns the maximum version number for the specified table type.

      Type RUN VLBAUTIL before using MAXTAB for the first time.

Adverbs
  INNAME......The name of the data file. Stamdard defaults.
  INCLASS.....The class of the data file. Standard defaults.
  INSEQ.......The sequence number of the data file.
                0 => highest
  INDISK......The disk number of the disk that holds the data file
                0 => any

EXPLAIN SECTION

MAXTAB:           Procedure to look up highest table version number
Documentor:       Chris Flatters
Related Programs: GETHEAD, VLBAUTIL

MAXTAB returns the highest version number of specific table type attached to
a file. This information is often needed when writing loops to automate
operations in POPS. For example you can print out antenna tables for all of
the subarrays belonging to a data file using the following loop.

DOCRT = FALSE
NPRINT = 0
FOR INVER = 1 TO MAXTAB('AN')
    RUNWAIT ('PRTAN')
END

MAXTAB operates on the file specified using the USERID, INFILE, INCLASS,
INSEQ, and INDISK adverbs. If this file has no files of the specified type
then MAXTAB will return a value of zero.

AIPS