      SUBROUTINE SRECEIVE
C
C     ****************************************************************
C
C              KERMIT for the MODCOMP MAXIV operating system
C
C        Compliments of:
C
C                         SETPOINT, Inc.
C                      10245 Brecksville Rd.
C                      Brecksville, Ohio 44141
C
C
C      KERMIT is a copyrighted protocol of Columbia Univ. The authors
C      of this version hereby grant permission to copy this software
C      provided that it is not used for an explicitly commercial
C      purpose and that proper credit be given. SETPOINT, Inc. makes
C      no warranty whatsoever regarding the accuracy of this package
C      and will assume no liability resulting from it's use.
C
C     ****************************************************************
C
C     Abstract:  MONITORS THE RECSW ROUTINE TO RECEIVE FILE
C
C     MODIFICATION HISTORY
C
C     BY            DATE     REASON            PROGRAMS AFFECTED
C
C     ****************************************************************
C
C     Author:  BOB BORGESON         Version: A.0    Date: Oct-86
C
C     Calling Parameters:
C
C     ****************************************************************
C
C     Messages generated by this module :  None
C
C     ****************************************************************
C
C     Subroutines called directly :  RECSW
C
C     ****************************************************************
C
C     Files referenced :  None
C
C     ****************************************************************
C
C     Local variable definitions :
C
C      STATUS   - RECEIVES THE KERMIT STATE CODE
C
C     ****************************************************************
C
C     Commons referenced :  KER and KERPAR
C
C     ****************************************************************
C
C     (*$END.DOCUMENT*)
C
C     ****************************************************************
C     *                                                              *
C     *         D I M E N S I O N   S T A T E M E N T S              *
C     *                                                              *
C     ****************************************************************
C
      IMPLICIT INTEGER (A-Z)
C
C     ****************************************************************
C     *                                                              *
C     *         T Y P E   S T A T E M E N T S                        *
C     *                                                              *
C     ****************************************************************
C
C
C     ****************************************************************
C     *                                                              *
C     *         C O M M O N   S T A T E M E N T S                    *
C     *                                                              *
C     ****************************************************************
C
      INCLUDE USL/UFTTBC
      INCLUDE USL/KERCOM
      INCLUDE USL/KERPMC
C
C     ****************************************************************
C     *                                                              *
C     *         E Q U I V A L E N C E   S T A T E M E N T S          *
C     *                                                              *
C     ****************************************************************
C
C
C     ****************************************************************
C     *                                                              *
C     *         D A T A   S T A T E M E N T S                        *
C     *                                                              *
C     ****************************************************************
C
C
C     ****************************************************************
C
C     Code starts here :
C
C
C                             IF WE'RE IN HOST MODE, ISSUE BINARY READ
C
      IF(HOSTON .EQ. NO)GO TO 10
C
        CALL READ4(IUFT(1,4),BLIN(1,1),132,.FALSE.)
        CURCHN = 1
C
   10 CONTINUE
C
C                             CALL RECSW AND INDICATE SUCCESS OR FAILURE
         STATUS=RECSW(X)
          IF(STATUS.EQ.YES) WRITE(LOCALO,100)
          IF(STATUS.NE.YES) WRITE(LOCALO,101)
      RETURN
100   FORMAT(' FILE TRANSFER COMPLETED')
101   FORMAT(' FILE TRANSFER FAILED')
      END
