C -------------------------------------------------------------------
C                Copyright (c) 1995, SAS Institute Inc.
C                  Unpublished - All Rights Reserved
C                    S A S / C   S A M P L E
C
C       NAME: C2FORTF
C   LANGUAGE: FORTRAN
C    PURPOSE: THIS EXAMPLE DEMONSTRATES A C MAIN CALLING A
C             FORTRAN ROUTINE.
C             IT CONSISTS OF SAMPLE LIBRARY MEMBERS
C             C2FORTC, C2FORTF, AND C2FORT.
C MVS -
C    COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(C2FORT).
C       LINK: USE JCL PROVIDED IN SAMPLE.AUX(C2FORT).
C    EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(C2FORT).
C TSO -
C    COMPILE: FORTRAN - USE FORTRAN COMPILER.
C             C - LC370C C2FORTC
C       LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(C2FORT).
C    EXECUTE: CALL .LOAD(C2FORT)
C CMS -
C    COMPILE: FORTRAN - USE FORTRAN COMPILER.
C             C - LC370 C2FORTC
C        LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(C2FORT).
C     EXECUTE: CALL C2FORT
C  MISC NOTES: THE FOLLOWING LSCL102 MESSAGES CAN BE IGNORED:
C  WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(IFYVINTE)
C  WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFEE#)
C  WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFES#)
C  WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(VFEIM#)
C  WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(FORPGM)
C -------------------------------------------------------------------
C
C      FORTRAN Program
C
       SUBROUTINE FORPGM
       WRITE(6,10)
10     FORMAT('        Entered the FORTRAN program')
       END