User's Guide

SCHEDSTAT

Check the schedule status of a scene

Function:

Check the schedule status of a scene. The status is returned in a name variable.

Parameters:

SCENEID
The 16-digit scene ID to search for in the master schedule. Case does not matter.

STATFLAG
Status of the scene. The following cases can be returned:

    DISK
    MISS
    PEND
    UNKNOWN
    NOT FOUND

STATFLAG should be declared as a string variable with a length of 10 or more.

Example:

  1. LAS> schedstat ah16050101123456 statflag

    The $ADAPSTABLES/master.sch will be read and the status of the scene ah16050101123456 will be returned in the name variable STATFLAG.

Description/Algorithm:

The environment variable ADAPSTABLES is retrieved and the master schedule within ADAPSTABLES is opened. The master schedule is read until the scene ID is found or end of file is reached. If the scene ID was found the status column is extracted and converted into a string. The string is returned to TAE. If EOF is reached "NOT FOUND" is returned.

Nonfatal Error Messages:

    None

Fatal Error Messages:

  1. [schedstat-open] Unable to open XXXX

    The named file XXXX could not be opened for reading. Insure the file exists and the user has read priveleges on the file.

  2. [schedstat-rparm] Error returning parameter to TAE

    The status flag could not be returned to TAE. Check with system administrator of problem persists.

  3. [schedstat-qout] Error returning parameter to TAE

    The status flag could not be returned to TAE. Check with system administrator of problem persists.

User Notes:

    None