If you're going to be doing that a lot check out my FTPBATCH ISPF dialog that can do the FTP in the foreground or generate batch JCL.
It can be found at www.lbdsoftware.com or in CBTTAPE.ORG file 312 -------------------------------------------------------------------------- Lionel B. Dyck Mainframe Systems Programmer - TRA -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Charles Mills Sent: Friday, September 01, 2017 10:25 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: FTP JCL EXAMPLE Look up the SITE subcommand. https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.halu001/site.htm Look at CYLinders and so forth. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of willie bunter Sent: Friday, September 1, 2017 8:19 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: FTP JCL EXAMPLE Good Day To All, I am trying to FTP a dsn of 90 cylinders from one MAINFRAME Lpar to another. The FTP function is unsuccessful because of a space abend. Would anybody have an example of how to code the space parm in the FTP batch job? I thought about pre-allocation the dsn on the target LPAR. This works however because of other dsns which will be FTP'd, the size of the dsns are not known because the application batch jobs are run overnight. I looked at IBM KNOWLEDGE CENTER but I couldn't find anything that would satisfy my requirement. Here is my batchjob. Please note I blanked out the IP address. //STEPFTP EXEC PGM=FTP,REGION=4096K,TIME=5, // PARM='1XX.1XX.XX.XXX //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUT DD * O00070 PASSWORD PUT 'O00070.OTTCAUDR.AUDITLOG' + 'O00070.OTTCAUDR.AUDITLOG' QUIT /* // ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN