Build FTP Parameters for FTP



IBM's Command List programming language & Restructured Extended Executor

Build FTP Parameters for FTP

Postby hjyoungii » Thu Apr 09, 2009 9:05 pm

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
hjyoungii
 
Posts: 9
Joined: Wed Jun 25, 2008 6:42 pm
Location: Des Moines, IA
Has thanked: 0 time
Been thanked: 0 time

Re: Build FTP Parameters for FTP

Postby dick scherrer » Thu Apr 09, 2009 10:08 pm

Hello,

I'm probably missing something, but why not QUEUE those as well?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Build FTP Parameters for FTP

Postby MrSpock » Thu Apr 09, 2009 11:34 pm

I agree. However, I always prefer to use the NETRC dataset for a more secured storage of id's and passwords.
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: Build FTP Parameters for FTP

Postby dick scherrer » Fri Apr 10, 2009 4:35 am

Hello,

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

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

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post