The nice thing about FTP - and also the problem with FTP - is that it has zero features.
Can you ask FTP if the file uploaded successfully? Nope.
Can you ask FTP for a file checksum or anything like that to verify it? Nope.
Can it tell you the most recent file? Nope.
Can you ask it if a file is there at all? Nope.
Can it tell you anything? Nope. Well, a directory listing. That's it.
So, you can depend on FTP being reliably unhelpful. But there's old-fashioned ways to trick it into doing what you want:
This prevents partial uploads from appearing in /remote/complete. If the connection is broken early, the file will never get renamed.
Then you can get the directory listing from /remote/complete to see if the file you wanted is in it.
Quote:
A. Using FTP method :- Will it not be possible to verify the file transferred and can the restart ability of the script be not achievable?
It will require brute force.
Connect with FTP, saving all output to a file.
Get directory listing.
Quit.
Process directory listing in script to remove all lines except the directory listing.
Check if the directory listing contains the file you uploaded.
That sort of thing.
Quote:
B. Is using SFTP less secure when compared to FTP -s to transfer files from AIX to Mainframe.?
Do you even have ftp -s? That's a very rare feature.
Quote:
Will there be any loss in data .i.e., will the data get corrupted?
sftp is less likely to corrupt your data than FTP.
FTP's "binary" feature is only there because, in the beginning, ftp was expected to translate text files automatically (i.e. EBCDIC to ASCII) so the recipient could read them. FTP mangles files because it's trying to process all downloads as text! And it always does that unless you force it not to with binary! sftp just doesn't do that, at all, period. It transfers the file as-is, always.
Hi
when i am trying to ftp to a newly cretaed mainframe GDG for the first time,i am getting the following error...
Verbose mode on.
200 Representation type is Ebcdic NonPrint
200 Port request OK.
550-SVC99 Return code=4 S99INFO=0 S99ERROR=38668 HEX=970C S99ERSN code X'00004379').
550... (1 Reply)
hi
suppose i have a file named xyz(-1) and i have to transfer(ftp) it on a Mainframe from unix,how should i do it as whenever i try to do so it says use MVS naming conventions (1 Reply)
suppose i have a file named xyz(-1) and i have to transfer(ftp) it on a Mainframe from unix,how should i do it as whenever i try to do so it says use MVS naming conventions (1 Reply)
Hi All,
I am new to this site, I have a requirement where in i have to FTP a file from mainframe to Unix box.
The catch here is there are few Spanish characters like N with tilde(~) and a with ` etc., all other characters are coming fine but those mentioned above are not coming in a proper... (1 Reply)
Hi Experts...
Greetings for the day..!
I just want to FTP the files to mainframe system..
my code is not working..and also i need to put the files in a particular directory in a specific naming format...
ftp -i -n ${HOST_NAME} << END_FTP
user ${USER_NAME} ${PASSWORD}
put ${FILE_NAME}... (3 Replies)
Hi,
I'm not sure if this has been solved in this forum already but please do help me out if possible. Basically, I've already setup a passwordless SSH connection between 2 AIX IDs (say ID-1 and ID-2) with a Mainframe server ID (say MVSID). I'm able to successfully do an SSH from the AIX server to... (1 Reply)
Hi All,
The issue is that, we have a dataset in mianframe whose record length is 153 characters. And a batch job ftpies it to the unix server(SunOS) as a test file. But the ftpied file in unix does not have a record length of 153 chars. Each record of 153 chars gets splited into two line of... (8 Replies)
Hi,
I have a task of setting up connectivity between Oracle 10g (AIX) and Mainframe (1 library). Went through couple of documents, forums, blogs etc. MY understanding is ODBC Generic Connectivity is free from Oracle side.
Question: (may be dumb to you)
1. Has anybody done this and would... (3 Replies)
This discussion thread is an extension to what was discussed in Shell scripting section.
Please refer the post for the requirement:
Requirement Post - Click Here
The whole thread - Click Here
I would like to know how I can use NDM to transfer file from AIX to Mainframe and to verify the... (3 Replies)