Running the Sample Programs in Windows

Follow the procedure below to run the sample programs in Windows.

  1. Start AcuConnect on the server by using the acurcl -start command or by clicking Start on the graphical control panel's Services tab.
  2. Copy the programs prog1.cbl, asynch.cbl, and client.cfg from the sample directory on the server to any directory on the client. If you kept the installation defaults, these files can be found in the %PUBLIC%\Documents\Micro Focus\extend x.x.x\sample\acuconnect\client directory on the server. You may want to create a new directory on the client to hold the samples.
  3. From a command prompt, navigate to the directory that contains the source programs, then compile both sources using the following command:
    ccbl32 <prog-name>.cbl
  4. Again, from the command prompt, to test synchronous CALLs, enter:
    wrun32 -c client.cfg prog1.acu
  5. To test asynchronous CALLs, enter:
    wrun32 -c client.cfg asynch.acu