/*-------------------------------------------------------------------+
|                COPYRIGHT (C) 1995, SAS INSTITUTE INC.              |
|                  UNPUBLISHED - ALL RIGHTS RESERVED                 |
|                    S A S / C   S A M P L E                         |
|                                                                    |
|       NAME: C2PASCP                                                |
|   LANGUAGE: PASCAL                                                 |
|    PURPOSE: THIS EXAMPLE DEMONSTRATES A C MAIN CALLING A           |
|             PASCAL ROUTINE.                                        |
|             IT CONSISTS OF SAMPLE LIBRARY MEMBERS                  |
|             C2PASCC, C2PASCP, AND C2PASCAL.                        |
| MVS -                                                              |
|    COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(C2PASCAL).              |
|       LINK: USE JCL PROVIDED IN SAMPLE.AUX(C2PASCAL).              |
|    EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(C2PASCAL).              |
| TSO -                                                              |
|    COMPILE: PASCAL - USE PASCAL COMPILER.                          |
|             C - LC370C C2PASCC                                     |
|       LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(C2PASCAL).  |
|    EXECUTE: CALL .LOAD(C2PASCAL)                           |
| CMS -                                                              |
|    COMPILE: PASCAL - USE PASCAL COMPILER.                          |
|             C - LC370 C2PASCC                                      |
|        LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(C2PASCAL). |
|     EXECUTE: CALL C2PASCAL                                         |
| MISC NOTES: THE FOLLOWING LSCL102 MESSAGES CAN BE IGNORED:         |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXRETC)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXHALT)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXSEGE)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXSTRT)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(AMPXPARM)   |
|   WARNING: CAN'T OPEN FILE DURING AUTOCALL: DDN:SYSLIB(PASCPROC)   |
+-------------------------------------------------------------------*/
  SEGMENT PASCPROC;

  PROCEDURE PASCPROC;
    EXTERNAL;

  PROCEDURE PASCPROC;
       BEGIN
          WRITELN('HELLO FROM PASCAL');
       END;