Problem in ftpying the datasets containing comp values to AIX from mainframe

Hi,

When i am trying to ftp COBOL generated data sets which contain comp values to AIX in ASCII mode. the comp values are getting corrupted. If i ftp the data set in binary mode it is working properly, but for this i have to change some compiler options in the COBOL. Also if i want to use the data set outside a COBOL program for any calculations i am unable to use it as it is in binary.

Thanks.
Somasekhar Gajjala.

What I have done in the past for this is to reformat the comp values to a text format with a sign on the end to tell if it is negative or positive.

Can you please tell the possible process which you used to reformat the data to ascii.

Thanks and regards,
Somasekhar Gajjala.

What mainframe operating system do you have... IBM/MVS, IBM/VSE, etc?

IBM/MVS

Hi,
I have attached a cobol program that does what I described. Also sample JCL. The cobol program was originally written for use on VSE, but now works under MVS. You might also check out the forums at:MVSFORUMS.com :: Index . They probably could come up with a better solution as this was written with an older version of cobol.