Page 1 of 1

FTP mainframe to mainframe COMp-3

PostPosted: Tue Nov 09, 2010 8:50 pm
by ganeshvjy
While FTP ing the file from one mainframe region to another mainframe region, the value which i declared as COMP-3 got changed after FTP ing. I didnt used any conversion techniques like EBcidic, IBMKANJI. I simply FTP ed. Can anyone know how to FTP the COMp-3 values as it is from one mainframe region to another mainframe region.

Re: FTP mainframe to mainframe COMp-3

PostPosted: Tue Nov 09, 2010 8:55 pm
by Robert Sample
Use binary?

Transferring a file mainframe to mainframe should not change any packed decimal values.

Re: FTP mainframe to mainframe COMp-3

PostPosted: Wed Nov 10, 2010 12:06 am
by steve-myers
From the point of view of FTP, Cobol COMP-3 data is binary data. If the data set is sent as a text file, the FTP on the sending side translates the data to its understanding of ASCII, and the FTP on the receiving side translates the data from its understanding of ASCII to EBCDIC. The translation of non-text data (e.g., binary data) is not well defined, even within my comments about "understanding ASCII." In addition, attempting to send non-text data as text data may cause the transmission to fail in unpredictable ways.

If the data is in fixed length records, send it as "binary" data so nobody translates anything.

Re: FTP mainframe to mainframe COMp-3

PostPosted: Wed Nov 10, 2010 10:33 am
by ganeshvjy
Thanks for the info i will use binary.

A question pop ups from your response,
Suppose if i am not defining anything while FTP ing the file, then the file will be sent as Binary or tex ?

Re: FTP mainframe to mainframe COMp-3

PostPosted: Wed Nov 10, 2010 10:50 am
by dick scherrer
Hello,

Whatever is the default setting for the ftp. . .

Suggest you specify binary and then it will always be known.

Re: FTP mainframe to mainframe COMp-3

PostPosted: Fri Nov 12, 2010 6:25 pm
by ganeshvjy
Thanks for the information....

I used binary and the issue got solved....

Re: FTP mainframe to mainframe COMp-3

PostPosted: Sat Nov 13, 2010 12:58 am
by dick scherrer
Good to hear it is working - thank you for letting us know :)

d