Licensed/Authorized CSI International customers can retrieve software authorization codes online. ---->>

CSI International logo
Request Free software trial

Sample Code: REXX

TCP/IP for z/VSE


  • REXXTELL
    expand_more

    * REXXTELL - This program will allow you to have an e-mail automatically sent to a user if a job abends. It will generate the subject heading and the body of the text, indicating the name of the job, as well as the date and time of the problem. It will also attach the output from the job as part of the e-mail. You simply need to follow the example that is in the header of the source code.

  • CALLCICS
    expand_more

    * CALLCICS - This program provides the interface so that an FTP client can issue

          QUOTE SITE REXX CALLCICS cicscommand

    and get the response returned to the client. Also, if you have multiple CICS' running, you can issue the command as

          QUOTE SITE REXX CALLCICS -powerjobname cicscommand.

  • REXCLSRV
    expand_more

    * REXCLSRV - This .zip file contains the source code for a tiny server that just opens a port, waits for data, displays it, and exits. There is also a tiny client that tries to log onto the server, sends a string, and logs out. You can run these two programs in tandem as an example of writing REXX client/server code.

  • REXXFTPX
    expand_more

    * REXXFTPX - This .zip file contains the source code for a special FTP client. It does not use SOCKET FTP but instead uses the real FTP protocol in order to do a LIST or STOR or CWD. You can use this program to transfer any file that REXX/VSE supports and without requiring TCP/IP to do the file I/O for you. This .zip file also contains a replacement SOCKET.PHASE that will support a feature required by this program. Just unzip the binary, upload the .bjb file, and it will catalog REXXFTPX.PROC and SOCKET.PHASE for your use.

  • VSEPWR
    expand_more

    * VSEPWR - This .zip file contains the source code for a REXX CGI that will read the contents of the power queue and then display them in a nice looking format. It will then allow you to click on one link to view the contents as plain text, or another link to view the contents as a PDF file!

  • REXXEXEC
    expand_more

    * REXXEXEC - This .zip file contains the source code for the REXEC client. You can not only send a command to a REXEC server but optionally check the buffer for the appropriate response, setting a return code if the command doesn't work the way you expect. This uses the OPEN SOCKET,CLIENT process.

  • REXXHTTP
    expand_more

    * REXXHTTP - This .zip file contains the source code for an HTTP client. You can send GET and POST requests and check the data returned by the webserver. You can process multiple requests and save the results to SYSLST or to a file.

  • REXECC
    expand_more

    * REXECC - This .zip file contains the source code for another REXEC client. The difference with this one is that an OPEN SOCKET,TELNET process is used instead of an OPEN SOCKET,CLIENT call. This will allow you to send commands that are longer than 100 bytes.

  • FTPPHASE
    expand_more

    * FTPPHASE - This .zip file contains the source code for a REXX program that will FTP a phase from one VSE library and put it into another. It does this by punching the PHASE (along with LINKEDIT JCL) into the Power punch queue, and then invokes FTPBATCH to send it to a remote Power reader queue where it is then link-edited into the remote VSE library.

    This is a work-around for the disabled native FTP of phases.

Learn More: TCP/IP for z/VSE
Share by: