I have multiple files uploaded to the Gateway via the SFTP protocol. These files have different record lengths (LRECL) and will be onward transferred to the mainframe system as binary files. How can I accomplish that if the MAXRECLEN value of the Transfer XML needs to be modified accordingly for each of the files to be transferred with the proper LRECL? Otherwise, the data will wrap and not be useful for processing.
CA XCOM Gateway for Windows r12.0
CA XCOM Data Transport for Windows r11.6
CA XCOM Data Transport for z/OS 12.0
This can be accomplished by creating a Custom script and assigning it to the Policy. In this case a PRE-Onward script will need to be created. For this example we will have a total of 3 scripts. A Transfer XML script, a Pre-Onward script, and a PowerShell script. The Sample Pre-Onward and PowerShell script will be included with the Knowledge Document.
Please be aware that these are Sample scripts, the user will be responsible for modifying and maintaining them.
Here are instructions and screen shots on how to implement the Custom script for Gateway and this specific scenario.
Note: Download the 3 sample scripts attached to this Knowledge Document and rename them as mentioned in the following instructions. The files are: Transfer_xml.dat, Modifyxml_ps1.dat, and Custom_bat.dat.
You can also use the XCOM GUI to create one and modify the MAXRECLEN parameter to be MAXRECLEN="00000" as shown in the sample. In addition to having FILE NAME="HLQ.&GUFILE" for the Remote file. You would replace the “HLQ” with your HLQ for the dataset.
By using the XCOM GUI you will be able to provide all the necessary information for the transfer, such as userid, password, remote file, and other important information.
For details, please refer to the XCOM for Windows manual.
Note: The sample scripts will need to be renamed by removing the “.dat” at the end of the file name. We purposely named them with the “.dat” to allow you to download them to your system without any problems.
Note: The Transfer XML shown in the screen is a sample and will need to be modified to your site specifications.
Note: This would be the Custom_bat.dat script. Again, remember to rename the script to remove the “.dat”. You also want to put that batch script in a safe directory.
Note: You can display the Custom.bat script by clicking on the button next to the path.
Note: You can display the actual XML by pressing the button next to the script name.
Here is how the screen will look like after you click the Done button: