get a file from one IP



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

get a file from one IP

Postby jeugenio » Thu Dec 30, 2010 7:51 pm

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
jeugenio
 
Posts: 6
Joined: Mon Dec 13, 2010 10:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: get a file from one IP

Postby MrSpock » Thu Dec 30, 2010 8:07 pm

Offhand, I'd say yes. Can't you test it yourself?
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: get a file from one IP

Postby Robert Sample » Thu Dec 30, 2010 8:22 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post