On Mon, 6 Jan 2020 17:43:40 +0400, Peter <dbajava...@gmail.com> wrote:
>Does anyone have a sample JCL to connect desktop ftp server and get files >and replace on preallocated Mainframe dataset ? The fact that the server is on a desktop is not relevant (except for reliability and availability, of course). >Basically I would like to achieve it via batch JCL. //FTP EXEC PGM=FTP,PARM='your.desktop.server(EXIT', // REGION=4M //NETRC DD DISP=SHR,DSN=YOUR.PASSWORD.DATASET(PASSMBR) //SYSTCPD DD DSN=YOUR.TCPIP.PARMLIB(TCPDATA),DISP=SHR //SYSPRINT DD SYSOUT=* //OUTPUT DD SYSOUT=* //INPUT DD * binary cd /your/server/dir get serverfile 'YOUR.MAINFRAM.DATASET(DATAMBR) quit Cheers, Jantje. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN