FTP mainframe to mainframe COMp-3



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

FTP mainframe to mainframe COMp-3

Postby ganeshvjy » Tue Nov 09, 2010 8:50 pm

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.
ganeshvjy
 
Posts: 3
Joined: Tue Nov 09, 2010 8:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTP mainframe to mainframe COMp-3

Postby Robert Sample » Tue Nov 09, 2010 8:55 pm

Use binary?

Transferring a file mainframe to mainframe should not change any packed decimal values.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: FTP mainframe to mainframe COMp-3

Postby steve-myers » Wed Nov 10, 2010 12:06 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: FTP mainframe to mainframe COMp-3

Postby ganeshvjy » Wed Nov 10, 2010 10:33 am

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 ?
ganeshvjy
 
Posts: 3
Joined: Tue Nov 09, 2010 8:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTP mainframe to mainframe COMp-3

Postby dick scherrer » Wed Nov 10, 2010 10:50 am

Hello,

Whatever is the default setting for the ftp. . .

Suggest you specify binary and then it will always be known.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: FTP mainframe to mainframe COMp-3

Postby ganeshvjy » Fri Nov 12, 2010 6:25 pm

Thanks for the information....

I used binary and the issue got solved....
ganeshvjy
 
Posts: 3
Joined: Tue Nov 09, 2010 8:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: FTP mainframe to mainframe COMp-3

Postby dick scherrer » Sat Nov 13, 2010 12:58 am

Good to hear it is working - thank you for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post