Wrong "new lines" when reading/writing cobol files
Posted: Mon May 09, 2011 4:25 am
Hello everyone:
I am having big troubles writing EBCDIC files. Let me tell you the whole problem.
I am readind/writing using FTP Enteprise stage. Reading is just fine: I can see data very well with "view data". Problem comes when writing.
To make it simpler and easier, I am reading just using an unique column, format binary, and length 383 (length of the record according to cobol copy book). The reading, as said, works fine.
Pass data through a copy stage, and then write to host again using FTP enterprise. Same column definition at destination.
Both files are configured the same regarding format:
Either downloading file to my local computer or checking it through TSO, I just can perfectly see data for SOURCE.
But when checking destination files, if I try to watch it in TSO, and it seems that there is some return carriage somewhere. Simply not all lines are starting at position 1, it is really strange.
BUT if I click on "view data" in a source FTP enterprise reading my destination file, I can view it with lines perfectly "cut".
If a download both files (source and destination) in BINARY mode, both files are exactly equal in size and format, everything is OK
But if I download files in TEXT mode, in my local PC the wrong cut in the destination file is exactly in the same place that when viewing in TSO
Can anybody help??
Thanks a lot!
I am having big troubles writing EBCDIC files. Let me tell you the whole problem.
I am readind/writing using FTP Enteprise stage. Reading is just fine: I can see data very well with "view data". Problem comes when writing.
To make it simpler and easier, I am reading just using an unique column, format binary, and length 383 (length of the record according to cobol copy book). The reading, as said, works fine.
Pass data through a copy stage, and then write to host again using FTP enterprise. Same column definition at destination.
Both files are configured the same regarding format:
Code: Select all
Record type = implicit
Delimiter = none
Null field value = -
character set = EBCDIC
data format = binary
allow all zeros = yes
But when checking destination files, if I try to watch it in TSO, and it seems that there is some return carriage somewhere. Simply not all lines are starting at position 1, it is really strange.
BUT if I click on "view data" in a source FTP enterprise reading my destination file, I can view it with lines perfectly "cut".
If a download both files (source and destination) in BINARY mode, both files are exactly equal in size and format, everything is OK
But if I download files in TEXT mode, in my local PC the wrong cut in the destination file is exactly in the same place that when viewing in TSO
Can anybody help??
Thanks a lot!