First of all, NETWORKUSERNAME is a little long to be a user name on the AS/400. The ID should be an ID that is valid on the AS/400. Here's a sample input script that I use bvstone getin ASCII put QTEMP/QQRNG02.SPL0000001 "/temp/here it is63469900001.TXT" put QTEMP/QQRNG02.SPL0000002 "/temp/here it is63470000001.TXT" close quit There ya have it. (BTW, getin is not my password anywhere..hehe...) Bradley V. Stone Taylor Corporation - OASIS Programmer/Analyst firstname.lastname@example.org > -----Original Message----- > From: Roger Boucher [mailto:RBoucher@stanpac.com] > Sent: Thursday, October 14, 1999 2:00 PM > To: MIDRANGE-L@midrange.com > Subject: FTP commands from source member > > > Okay, so it's my first try... but I can't get it to work. I > can establish > FTP connection to SERVERNAME and then login in from an AS/400 > command line, > but when I try to run it from a program I get messages > telling me I can't > log in: > > I have tried every possible combination of ways to specify > username and > password. I've tried them on the same line, seperate lines, with and > without the subcommands USER and PASSWORD (even tried PASS) > and nothing is > working. I always get the message telling me I cannot log > in. Anyone see > what I'm doing wrong? > > TIA > > Here's the program... > CLRPFM FILE(MYLIB/MYFILE) MBR(OUTPUT) > OVRDBF FILE(INPUT) TOFILE(MYFILE/MYLIB) MBR(INPUT) > OVRDBF FILE(OUTPUT) TOFILE(MYFILE/MYLIB) MBR(OUTPUT) > FTP RMTSYS(SERVERNAME) > > Here's the output member... > Output redirected to a file. > Input read from specified override file. > Connecting to host SERVERNAME at address xxx.xxx.xxx.xxx > using port 21. > 220 servername Microsoft FTP Service (Version 4.0). > > Enter login ID (AS/400USERNAME): > > 331 Password required for NETWORKUSERNAME. > > 530 User NETWORKUSERNAME cannot log in. > > Enter an FTP subcommand. > > PUT XXXXX/YYYYYY............. > > Roger Boucher > Standard Pacific Corp. > email@example.com > 714-668-4326 > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to > MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: > firstname.lastname@example.org > +--- > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.