Verifying client/server communication

Before you begin

Previous step: Start the server

About this task

Verifying communication on z/OS® MVS™: To verify the connection between a z/OS MVS server and a client workstation by processing a sample text file:
  1. On the client computer, run the following rccbuild command:

    rccbuild –h servermachine@portno –ft sample.jcl –b sample –it sample.inp –ot sample.out

    servermachine
    Specifies the server computer.
    portno
    Specifies the listening port on the server computer. The port number must match the number in the RCCRUNM member.
    sample.jcl sample.inp sample.bat
    Members of Samples directory created by client install.

    The sample BCL (sample.jcl) and an input file (sample.inp) are sent to the server. The input file is copied to the sample.out file and returned to the client computer.

    Messages like those that follow display on the client screen:
    02/03/15 12:18:31 *** Success ***
    02/03/15 12:18:31
    RCCI-003
    Program Name : 'IEBGENER'.
    PARM         : ''.
    RCCI-004
    The MVS step 'TEST1' return code is '000000'.
    02/03/15 12:18:31 Message files from build:
    02/03/15 12:18:31    1:TEST1.SYSPRINT
    02/03/15 12:18:32 *--------------------------------------------------------
  2. In the directory that contains the rccbuild executable, browse the file sample.out for the following messages:
    The Remote Build server and client components are communicating.
    To see the server output messages, view the file RCCBLDC.LOG.
Verifying communication on z/OS UNIX® System Services: You can verify the connection between a z/OS UNIX System Services server and a client workstation by compiling a C language program and returning the output executable to the client computer:
  1. On the client computer, run the following rccbuild command:

    rccbuild –h servermachine@portno –b cc –it rcopy.c –p --o rcopy.ob rcopy.c –o rcopy.ob –V

    servermachine
    Specifies the server computer.
    portno
    Specifies the listening port on the server computer. The port number must match the number in the RCCRUNU member.
    rcopy.c
    Source code. Member of Samples directory created by client install.

    The C language source file rcopy.c is sent to the server and compiled. The output file rcopy.ob is returned to the client computer.

    Messages like these are displayed on the client screen:
    The build job has been queued by the server. Position is 1.
    02/05/06 13:33:55
    RCCI-014
    Job  'BUILD000.' has been started by the server.
    ...
    02/05/06 13:33:58 *** Success ***
    02/05/06 13:33:58
    Input Files:  rcopy.c
    Output Files:  rcopy.ob
  2. In the directory from which you ran rccbuild, browse for the file rcopy.ob. The rcopy executable copies the list of files in a specified directory and their associated permissions to the client screen.
  3. On the client computer, run the following rccbuild command:

    rccbuild –h servermachine@portno –b rcopy.ob –fb rcopy.ob –p path –V

    servermachine
    Specifies the server computer.
    portno
    Specifies the listening port on the server computer. The port number must match the number in the RCCRUNU member.
    path
    Specifies an existing directory path on the server computer.

    The server runs the rcopy executable and returns a list of files and associated permissions to the client computer.