I don't care about Abacus. I asked for a copy of an FTP session from the mainframe to this "Local Machine". I'd like to see some proof that you have the RACF or ACF/2 authority to execute FTP (doubtful) and that this "Local Machine" is configured for FTP access with a static TCP/IP address and/or domain name (again, doubtful), has an active FTP daemon, that you have an appropriate access logon id and password, and that your network configuration will allow the connection between the two machines.
Also, I'd like to know what your site's standards are for passing logon and password information across the network for FTP. Usually those details should be protected from unauthorized users, unless you allow anonymous FTP access.
Joined: 09 Aug 2008 Posts: 1631 Location: Mumbai, India
Posted: Wed Aug 19, 2009 6:16 pm Post subject:
I agree with MrSpock -- You probably cannot send a file from the mainframe to your PC using FTP via a batch job (JCL) unless your PC is running as a(n) "FTP server" so the mainframe could connect; using personal PC as FTP server is most unlikely. _________________ Regards,
Last edited by Anuj Dhawan on Thu Aug 20, 2009 10:33 am; edited 1 time in total
where x.xx.xx.x is the TCP/IP address or domain name of the FTP server you are connecting to. 21 is the port number, and that is a standard port number for FTP, but it can vary so check with the Admin for your FTP server. You can direct FTP to exit on error with a nonzero return code by specifying the EXIT or EXIT=nn parameter on the FTP command.
//NETRC DD DSN=HLQ.NETRC,DISP=SHR
You can use the NETRC dataset, as defined by the NETRC DD statement , to identify the user ID and password for a batch-processed remote login. You can also specify the user ID and password in the INPUT DD data set.
//SYSFTPD DD DSN=HLQ.FTP.DATA
is an optional DD for a dataset that contains default configuration settings for FTP sessions.
//OUTPUT DD SYSOUT=*
Standard DD for your output messages. You can use SYSPRINT DD in place of the OUTPUT DD statement.
Specifies the input FTP commands.
A typical FTP input datastream might consist of the following commands:
>userid (if not already supplied in the NETRC dataset)
>sendsite (turn off the SITE command)
>ls (list files on the server)
>dir (directory of files on the server)
>cd (change directory on the server)
>lcd (change directory on the local site)
>put local-file target-file
>get target-file local-file
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum