Certain commands (e.g., my) may not run on the target Unix (or Linux), once the command is transferred via XCOMJOB (from the mainframe), if it requires a continuation line as command text. The command would fail with XCOMU0289E Command failed, RC=127.
An available solution for this problem follows:
- Edit XCOM.GLB file on the target Unix (or Linux) system
- Change parm REMOVE_TRAIL_BLANKS=NO to YES; save change
- Stop and start xcomd on the target Unix (or Linux) system
- Initiate the SEND JOB (XCOMJOB) from the mainframe (z/OS)
Example of a VB file: The command text would look like this;
mv /aaaa/bbb/ccc/ddd/eee/fff/ggg/hhh/old.txt \ (backslash needed)
Changing REMOVE_TRAIL_BLANKS=NO to YES will affect all incoming transfers (on target system).
If using a RECFM=FB file with an LRECL=80 (such as a PDS member), and making sure the continuation character is in column 80, there is no need to change REMOVE_TRAIL_BLANKS=NO to YES on target system.
If using a RECFM=VB file, the continuation character can be in any column within the limits of the LRECL. In this case, there is no need to change REMOVE_TRAIL_BLANKS=NO to YES on target system.