Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

trueblueg8tor

Posts

5

Joined

Tue Feb 19, 2008 7:07 am

Location

Tampa, FL

Ftp to Mainframe

by trueblueg8tor » Wed Mar 12, 2008 3:58 am

Usually when I ftp a file to a Windows or Unix server where the file already exists the file on the server is overwritten. This was not the case when I ftp-ed a flat text file to a Mainframe - my file did not overwrite the one on the Mainframe. Is there a special step involved? Could it be a EBCIDIC vs ASCII thing?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Ftp to Mainframe

by support2 » Wed Mar 12, 2008 6:35 pm

Perhaps the server is configured to not permit overwrites, or your userid may not have write permission.

Another possibility is a store unique flag that forces the file to be saved as another name - are there new files appearing?
no avatar
User

trueblueg8tor

Posts

5

Joined

Tue Feb 19, 2008 7:07 am

Location

Tampa, FL

Re: Ftp to Mainframe

by trueblueg8tor » Thu Mar 13, 2008 11:16 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Ftp to Mainframe

by support2 » Fri Mar 14, 2008 7:37 am

no avatar
User

trueblueg8tor

Posts

5

Joined

Tue Feb 19, 2008 7:07 am

Location

Tampa, FL

Re: Ftp to Mainframe

by trueblueg8tor » Fri Mar 14, 2008 11:28 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Ftp to Mainframe

by support2 » Sat Mar 15, 2008 6:48 am

no avatar
User

trueblueg8tor

Posts

5

Joined

Tue Feb 19, 2008 7:07 am

Location

Tampa, FL

Re: Ftp to Mainframe

by trueblueg8tor » Tue Mar 18, 2008 5:51 am

no avatar
User

jackfido

Posts

6

Joined

Thu Jul 22, 2010 2:28 am

Location

Monterrey

I have the same problem

by jackfido » Thu Jul 22, 2010 2:57 am

I have the same problem, i was making a class in java in where i use the edtFTPj, and i conect to a mainframe z/OS, but i still have a dude, when i do a get/put method, how i need write it in my class?

i have the next line code in my class

for get:
client.get(objectFile.getName()); (where client is a FTPClient object, and object file is my file name)

for put:
client.put(str_fileName, str_name, false); (same case client is FTPClient object, str_fileName is my file name on mainframe, str_name is the new file which i will upload to a mainframe)

i need make some as this:

for get:
client.get("'" + objectFile.getName() + "'");

for put:
client.put(str_fileName, "'" + str_name + "'", false);

???? thnx
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Jul 22, 2010 6:54 am

Firstly, get(String) returns a byte-array instead of saving the file locally. You need to use get(String,String), which does save the file locally using the given name.

Secondly, you don't need to put quotes around the file-name at all.

- Hans Andersen (EnterpriseDT)
no avatar
User

jackfido

Posts

6

Joined

Thu Jul 22, 2010 2:28 am

Location

Monterrey

Oh

by jackfido » Thu Jul 22, 2010 7:26 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Jul 22, 2010 7:33 am

no avatar
User

jackfido

Posts

6

Joined

Thu Jul 22, 2010 2:28 am

Location

Monterrey

yep

by jackfido » Thu Jul 22, 2010 7:36 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Jul 22, 2010 2:41 pm

Please post a log. Instructions for generating a log may be found .

- Hans (EnterpriseDT)
no avatar
User

jackfido

Posts

6

Joined

Thu Jul 22, 2010 2:28 am

Location

Monterrey

:), dont worry, i fix it, thnx. :D

by jackfido » Sat Jul 24, 2010 4:59 am

hey people, thnx for ur time, i only say my program now is ok :D, the problem was that when i did the get method i was using an function for find directory, but my problem was there, cuz my problem never found it. now, it is ok :). my first problem was here: http://www.enterprisedt.com/forums/viewtopic.php?t=3020 but now it is ok, thnx people for help me
no avatar
User

jackfido

Posts

6

Joined

Thu Jul 22, 2010 2:28 am

Location

Monterrey

sorry

by jackfido » Sat Jul 24, 2010 5:00 am

aaaaaa sorry for my english :(
Next

Who is online

Users browsing this forum: No registered users and 121 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron