|
Whenever you sign onto an FTP server, you are given a default "directory". This is usually indicated by the FTP server at the time you log in. You can see what your default "directory" is at any time by issuing the FTP "pwd" (print working directory) command. On the mainframe, the traditional OS/390 file system does not have directories like the PC or the IFS but has a flat naming space not unlike the traiditional OS/400 file system which uses library/filename. On the mainframe the format of a file is name1.name2.name3 where each namex component can be up to eight characters and the total length of the data set name can be 44 characters. The current "directory" is prepended to the data set name when you do a put with a relative name. An absolute name (I'm not sure of the exact terminology here) is surrounded by single quote marks like this: 'MYUID.MYDATA.SET.NAME'. A relative file name is -not- surrounded by single quotes like this: MYDATA.SET.NAME. If you specify a relative name (ie without quote marks), the default "directory" is prepended to the file name, just like on any other FTP server. To get the file name you want, specify the exact file name surrounded by single quotes. HTH, Gary > -----Original Message----- > From: java400-l-bounces@xxxxxxxxxxxx > [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of cornelius, chad > Sent: Wednesday, February 09, 2005 12:01 PM > To: 'java400-l@xxxxxxxxxxxx' > Subject: EdtFtpJ Utilities > > I am using EDT's Ftp utility to ftp a text file to a Main > Frame. The problem is that when I Ftp the file, it is > prefixing the file with the username that I FTP with. I know > absolutely nothing about Main Frame's or why the > concatenation of the prefix. Does anyone have answers? > > > > Thanks, > > Chad > > > > -- > This is the Java Programming on and around the iSeries / > AS400 (JAVA400-L) mailing list To post a message email: > JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change > list options, > visit: http://lists.midrange.com/mailman/listinfo/java400-l > or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, > please take a moment to review the archives at > http://archive.midrange.com/java400-l. >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.