Sample solution to transfer datasets from one system to another using XMIT and ADRDSSU - IBA-mainframe-dev/Global-Repository-for-Mainframe-Developers GitHub Wiki
This solution solves the issue of packing and transferring data sets from one system to another in an automatic mode, using XMIT and ADRDSSU with return code checking via simple REXX script
Steps for implementation:
- Allocate in your first system two JCL jobs and one REXX script with the appropriate content from the below datasets:
Description:
- SENDLIBS JCL job - for preparing and packing datasets for transferring and sending them to a remote system.
- RECVLIBS JCL job - for receiving datasets on a remote system and unpacking them.
- CHECKRC REXX script - for checking the return code from remote system job output.
-
After creating jobs, you need to replace the following places in the code:
- All values enclosed in hashtags (example:
#value to change#
) - Change the job card to suit your system settings (an example of a job header that was used to launch is in the "INSTRUCTIONS" block, at the beginning of the code listing)
- All values enclosed in hashtags (example:
-
After changing all values in the code, execute USER01.SAMPLE.JCL(SENDLIBS) JCL job and check the execution result.