PDA

View Full Version : How to set initial FTP path to IFS directory



Guest.Visitor
01-01-1995, 02:00 AM
Hello, I know there's a "HOME" parameter that can be set in a person's user profile, but even when specifying it I can't seem to get around the "QGPL" initial directory. What I'm trying to do is set the initial directory of a particular user to a specific IFS directory. Any ideas here? TIA, Steve

Guest.Visitor
12-06-2000, 01:08 PM
Steven - After starting an FTP session, use the "QUOTE SITE NAMEFMT 1" sub-command. HTH, Steve

Guest.Visitor
12-06-2000, 07:17 PM
Hello Steve, The only way I've found to do this is to manually issue a change directory command after logging into the AS/400. This automatically switched to NAMEFMT 1 mode. Example: CD /USERNAME Regards, Richard Schoen RJS Software Systems Inc. "The AS/400 Report and Data Delivery Experts" Email: richard@rjssoft.com Web Site: http://www.rjssoft.com

David Abramowitz
12-07-2000, 02:49 AM
There may be some confusion with nomenclature here. QGPL is not an initial directory, but rather a "current library" The inital directory is QSYS.LIB. You might try writing a short CL Program that will change the current directory, and attach that program the the user profile (*USRPRF), as an initial program. Dave

Guest.Visitor
12-07-2000, 05:28 AM
Steven, Try something like: <pre> ftp open as400name <- System to connect to usrprofile password quote site namefmt 1 <- Set naming format (site namefmt 1 <- AS/400 to AS/400) bin <- Don't do ascii>ebcdic conversion cd LIBRARY <- Set library name lcd c:/temp <- Set source directory put file.savf <- Send a save file to your AS/400 </pre> David Morris

Guest.Visitor
12-07-2000, 05:43 AM
Steven wrote: "What I'm trying to do is set the initial directory of a particular user to a specific IFS directory." I apologize for not reading your initial post more carefully. If you want to automatically set the initial directory when the FTP session begins, I believe you will need to do this via an exit program on the FTP exit points (see the WRKREGINF command, exit point QIBM_QTMF_SVR_LOGON, format TCPL0200). HTH, Steve

Guest.Visitor
12-07-2000, 05:46 AM
David wrote: ". . . attach that program the the user profile (*USRPRF), as an initial program." David - FTP doesn't use the initial program of the user profile (but you already knew that) . . . Absent mindedly yours, Steve

David Abramowitz
12-07-2000, 04:02 PM
I really didn't pay much attention to the title of the post, as I did the text of the post. Dave

Guest.Visitor
12-08-2000, 11:53 AM
Thanks Steve (and everyone)! I'm getting a lot of feedback on this...working with exit programs is a new concept to me but I'll spend some time on it. For now we're doing a "cd" to move from directory to directory. Thanks again, Steve