/*-------------------------------------------------------------------+ | Copyright (c) 1995, SAS Institute Inc. | | Unpublished - All Rights Reserved | | S A S / C S A M P L E | | | | NAME: PASCCXXP | | LANGUAGE: PASCAL | | PURPOSE: THIS EXAMPLE DEMONSTRATES A PASCAL PROGRAM CALLING | | A C++ FUNCTION. | | IT CONSISTS OF SAMPLE LIBRARY MEMBERS | | PASCCXXC, PASCCXXP, AND PASCCXX. | | MVS - | | COMPILE: USE JCL PROVIDED IN SAMPLE.AUX(PASCCXX). | | LINK: USE JCL PROVIDED IN SAMPLE.AUX(PASCCXX). | | EXECUTE: USE JCL PROVIDED IN SAMPLE.AUX(PASCCXX). | | TSO - | | COMPILE: PASCAL - USE PASCAL COMPILER. | | C++ - LCXX PASCCXXC USING INDEP OPTION. | | LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(PASCCXX). | | EXECUTE: CALL.LOAD(PASCCXX) | | CMS - | | COMPILE: PASCAL - USE PASCAL COMPILER. | | C++ - LCXX PASCCXXC USING INDEP OPTION. | | LINK: ILCLINK, USING CONTROL CARDS IN SAMPLE.AUX(PASCCXX). | | EXECUTE: CALL PASCCXX | | 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) | +-------------------------------------------------------------------*/ PROGRAM PASCCXX; CONST STRSIZE = 30; TYPE PARMSTR = STRING(STRSIZE); VAR TOKEN : INTEGER; ERRFLAG : INTEGER; procedure CFMWK(const LANG : STRING; const COPTS : STRING; const ILCOPTS : INTEGER; var TOKEN : INTEGER); EXTERNAL; procedure DCFMWK(const TOKEN : INTEGER; var ERRFLAG : INTEGER); EXTERNAL; procedure CPROG; EXTERNAL; BEGIN CFMWK('PASCAL.','.', 1, TOKEN); CPROG(); DCFMWK(TOKEN, ERRFLAG); END.