Previous Topic: FTP Print DriverNext Topic: Transfer Print Files to a Remote FTP Server


NETRC Data Set

The NETRC data set provides you with an alternative to specifying your userid and password as FTP parameters when you want to FTP to a remote host.

To use the NETRC data set you need to activate the following DD statement in the JCL procedure for CA Spool:

//*-------------------------------------------------------------------*
//*  Common FTP, CA XCOM and Connect:Direct userid/password file      *
//*-------------------------------------------------------------------*
//NETRC    DD  DISP=SHR,DSN=&PARMLIB(IQNETRC)                          

The supplied CBQ4PARM(IQNETRC) sample contains the following sample definitions:

*                                                            
*  Common FTP, CA XCOM and Connect:Direct userid/password file
*                                                            
machine ftp.com                          login userid1 password pass1
machine 111.222.33.44                    login uesrid2 password pass2
machine XCOM.IPNAME.com                  login uesrid3 password pass3
machine XCOMLUx                          login uesrid4 password pass4
machine XCOMGROUPx                       login uesrid5 password pass5
machine ConnectDirect                    login uesrid6 password pass6

If no FTPUSER and FTPPASS parameters are specified on a FTP request, the remote FTP machine is looked up in the NETRC data set. If the machine is found, its password is used.

If the FTPUSER is specified without FTPPASS, the FTP machine and the FTPUSER is looked up in the NETRC data set. If the machine is found, its password is used.

If the NETRC data set is used, it must be secured against unauthorized read and write access.