Page 1 of 1

get a file from one IP

PostPosted: Thu Dec 30, 2010 7:51 pm
by jeugenio
i HAVE this job, and i would like to know if it is correct.

/FTPRZH01 EXEC PGM=FTP,                                   
//         PARM='<server> (EXIT'           
//SYSTCPD  DD DSN=TCPIPSIS.COMUN.CONFIG(TCPDATA),DISP=SHR 
//SYSFTPD  DD DSN=TCPIPSIS.COMUN.CONFIG(FTSDATA),DISP=SHR 
//SYSPRINT DD SYSOUT=*                                     
//OUTPUT   DD *                                           
//INPUT    DD DISP=SHR,DSN=ORC.GRISB.JCL.SYSIN(K3FTPRZH)   
//         DD *                                           
CD                                                         
IN                                                         
BIN                                                       
GET  CCDTA1 +                                             
    'ORC.DEVT.RZHART.CCDTA1' (REPLACE                     
CLOSE                                                     
QUIT
tHANK YOU

Re: get a file from one IP

PostPosted: Thu Dec 30, 2010 8:07 pm
by MrSpock
Offhand, I'd say yes. Can't you test it yourself?

Re: get a file from one IP

PostPosted: Thu Dec 30, 2010 8:22 pm
by Robert Sample
Maybe -- if RC.GRISB.JCL.SYSIN(K3FTPRZH) contains a user id and password to <server>, you should be able to connect to it.

What do you think you're doing with these statements?The CD isn't going to change the server directory since you did not specify somewhere to change to, and the IN command does not exist in FTP. The binary transfer will update the ORC.DEVT.RZHART.CCDTA1 data set but whether or not you should be using TEXT or BINARY is not anything we can tell you.