PROCESS-AUTO

The PROCESS-AUTO paragraph is performed by GET-COMS-Message when the COMS message is identified as an Automatic Entry from the application to the destination NON.FORMAT.

PROCESS-AUTO passes the provided reply to the <<Ispec>> class or Report that sent the Automatic Entry. The skeleton code replies to Automatic Entries with a Glb.Status value of spaces, to indicate that the Automatic Entry was received OK. No data is required in this reply.

Since your <<Ispec>> class or Report that sent the Automatic Entry is waiting for a reply, any delay in sending the reply should be kept to a minimum.

The PROCESS-AUTO paragraph performs the following tasks:

  1. The message text, message length, and station type are defined. If required, you must add code at this point in the logic to move in the data to be replied.

  2. If GL-MSG-LENGTH is zero, then Glb.Status is returned to the application with a value of spaces.

  3. If GL-MSG-TEXT is not spaces and GL-MSG-LENGTH is not zero, then the text is returned with Glb.Status set to DATA. GL-MSG-ERROR-IND is set to a value that corresponds to the value returned to the application in Glb.Status, as shown in the following table.

    Glb.Status

    GL-MSG-ERROR-IND

    BLOCK

    3

    TOUT

    5

    BUSY

    8

    NODB

    9

    spaces

    Other non-zero value

    To test for duplicates, add code after this point.

  4. If GL-MSG-RECOVERY-IND is not zero, then this Automatic Entry might be a duplicate. Refer to Recovery for more information.

  5. The Automatic Entry is tested to see if it is from an <<Ispec>> class or Report.

    • If the Automatic Entry is from a <<Ispec>> class (GL-MSG-REQUESTOR is less than 8001), the reply is sent by calling the library procedure AMQU of LINCSUPPORT. These replies are sent directly to the COMSTP program that sent the Automatic Entry and is awaiting the reply.

    • If the Automatic Entry is from a Report (GL-MSG-REQUESTOR is 8001 or greater), the reply is sent through COMS by defining the router designator for the application, computing the message length, setting the target <<Ispec>> class name to five hyphens (-----), and performing the COMS send. By setting the target <<Ispec>> class to hyphens, (an invalid <<Ispec>> class name), the message is routed by COMS to the LSS program. The LSS program then directs the message to the appropriate Report.

  6. If a send error occurs, that error is displayed.