Is this an FTP that executes from the z/OS system to "pull" a Linux file to the mainframe or a Linux FTP to "push" a file up to the mainframe? From your example it appears to be a "pull" setup.
For a "pull" request running on z/OS I would put a "delete file " step (just an IEBR14) before the FTP step to delete the file to be pulled in and then just set the LOCSITE values and get the file without the "(replace" option, mainly because I have not RTFM in the z/OS CommServer docs to see if z/OS FTP supports the "delete" command. I.E.: //DELFILE EXEC PGM=IEFBR14 //DELFILE DD DISP=(OLD,DELETE),DSN=HLQ.MAINFRAME.FILE //* //FTPSTEP EXEC PGM=FTP, . . . Etc. If it were me I would also use at least "PRI=10 SEC=10" on the LOCSITE instead of 1 cylinder. Using a primary and secondary of 1 cylinder each seems to me to be a sure way to generate x37 abends in the absence of an "x37 avoiding" software product running on the system. HTH Peter -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Ron Thomas Sent: Thursday, April 20, 2017 11:46 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: FTP Failing with space issues Ok. is the below one coded will work from linux LOCSITE BLOCKSIZE=0 LRECL=133 WRAP RECFM=FB PRI=1 SEC=1 CYL delete 'HLQ.MAINFRAME.FILE' get linux_file.txt 'HLQ.MAINFRAME.FILE' (replace Thanks Ron T -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN