Why is code getting corrupted running FTP batch within the same REXX?

Document ID : KB000015312
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Running FTP BATCH jobs using REXX.

Question:

Why is code getting corrupted running FTP batch within the same REXX? 

Environment:
Easytrieve VSE 6.3; Running zVSE 6.1.
Answer:

When we run the Easytrieve program without the FTP step, it completes successfully.

An instruction was polluted by FTP ... 

It is recommended to not run multiple FTPBATCH programs in the same REXX as this can cause issues.