Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!decuac!haven!adm!news From: V4039%TEMPLEVM.BITNET@uga.cc.uga.edu ( Stan Horwitz) Newsgroups: comp.lang.pascal Subject: Calling Pascal from COBOL -- UGH Message-ID: <26440@adm.brl.mil> Date: 3 Apr 91 15:02:15 GMT Sender: news@adm.brl.mil Lines: 14 I am new to this list and am not clear yet on whether or not this list is devoted to a specific version of Pascal. My question today pertains to VSPascal on an IBM mainframe. Since VSPascal has this neato ability to call cms (operating system) commands from within its program, I would like to write a vspascal function which could be called from VS COBOL II and will do the cms command and return the return code to the calling COBOL program. Has anyone done this yet. The Pascal program is easy to write, but I can't seem to get COBOL programs to use this function. My test COBOL program gives no compile or run-time errors, but also does not do anything when it calls this Pascal program. Stan Horwitz, Consultant | Bitnet | Internet Temple University | V4039@TEMPLEVM | V4039@VM.TEMPLE.EDU