Receiving Files                                

  1. Invoke CAS function 00H (Get Installed State) to determine if the
     Resident Manager is installed.  If it is, continue with the following
     steps.

  2. Invoke function 05H (Find First Entry in Queue) to determine if any
     receive events have occurred.  If a receive event has occurred,
     continue with the following steps.

  3. Invoke function 07H (Open a File) to open the Control File for the
     receive event..

  4. For each File Transfer Record in the Control File, examine the "Status
     of this file" field to determine if the associated received file has
     been moved or deleted.  For each received file that has not been moved
     or deleted, continue with step 5.  If no such files remain, close the
     Control File and continue with step 8.

  5. Invoke function 14H (Move Received File) to move the received file to
     the appropriate directory or filename or invoke function 08H (Delete a
     File) to delete the received file.

  6. Once you have moved, renamed, or deleted all the received files,
     invoke DOS function 3EH (Close File Handle) to close the Control File.

  7. Invoke function 08H (Delete a File) to delete the Control File.

  8. Invoke function 06H (Find Next Entry in Queue) to determine if
     additional receive events have occurred.  If there are additional
     receive events, repeat steps 3 through 7.

See Also Transmitting to a Group Error Codes


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .