Page 1 of 1

Build FTP Parameters for FTP

PostPosted: Thu Apr 09, 2009 9:05 pm
by hjyoungii
We currently have the following commands being built thru REXX for FTPing files. However, we also need to be able to include the user name and password:

 NEWSTACK                               
 QUEUE ' PWD'                           
 QUEUE ' ASCII'                         
 QUEUE ' SENDSITE'                       
 QUEUE ' CD '||PATH                     
 DO I = 1 TO NUMBER_OF_LINES             
   COUNT = COUNT + 1                     
   PARSE VAR FILELINE.COUNT X1 X2       
   QUEUE ' PUT '||X1                     
 END                                     
 QUEUE ' QUIT'                           
 RETURN

Re: Build FTP Parameters for FTP

PostPosted: Thu Apr 09, 2009 10:08 pm
by dick scherrer
Hello,

I'm probably missing something, but why not QUEUE those as well?

Re: Build FTP Parameters for FTP

PostPosted: Thu Apr 09, 2009 11:34 pm
by MrSpock
I agree. However, I always prefer to use the NETRC dataset for a more secured storage of id's and passwords.

Re: Build FTP Parameters for FTP

PostPosted: Fri Apr 10, 2009 4:35 am
by dick scherrer
Hello,

Didn't know about NETRC (i don't have ndm) :oops:

I'm always a proponent of the more secure approach. . .

d