| View previous topic :: View next topic |
| Author |
Message |
bvaasavi Beginner
Joined: 13 Dec 2005 Posts: 3 Topics: 1
|
Posted: Tue Dec 13, 2005 10:10 am Post subject: Problem while downloading a file from mainframe to unix |
|
|
Hi,
I am trying to download a filw which contains comp-3 values from mainframe to unix.The file is not getting downloaded correctly,How to overcome this problem.
Your help is appreciated.
Thanks,
Vasavi |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
bvaasavi Beginner
Joined: 13 Dec 2005 Posts: 3 Topics: 1
|
Posted: Tue Dec 13, 2005 10:27 am Post subject: |
|
|
Hi Kolusu,
Thanks for your suggestion,but my downloaded file is an i/p to a cobol pgm which runs in unix,so i should not do conversion.
please suggest what to do |
|
| Back to top |
|
 |
videlord Beginner
Joined: 09 Dec 2004 Posts: 147 Topics: 19
|
Posted: Tue Dec 13, 2005 10:48 am Post subject: |
|
|
how did you download the file?
If ftp with ASCII mode, the each character will be changed when transfered.
try use BIN mode. But then all character would keep EBCDIC. |
|
| Back to top |
|
 |
bvaasavi Beginner
Joined: 13 Dec 2005 Posts: 3 Topics: 1
|
Posted: Thu Dec 15, 2005 11:10 am Post subject: |
|
|
Hi,
i tried to download with ascii option.as you suggested if i download in binary,it will retain ebcdic right,so i again need to convert in to ascii?
Suggest me an approach such that the Mainframe file with comp fields is read correctly in unix. |
|
| Back to top |
|
 |
Manas Biswal Intermediate

Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Mon Dec 19, 2005 3:17 pm Post subject: |
|
|
bvaasavi,
I am not sure of your requirements here -
| Quote: |
Suggest me an approach such that the Mainframe file with comp fields is read correctly in unix.
|
Unix does not support comp-3 data and any version of COBOL(I think you will be using Microfocus COBOL here) that you use in Unix should likewise not support comp-3. You should be converting all comp-3 data into Unix compatible data before attempting to download the file.
There are a lot of tools in the market to do just that including one by Syncsort.
HTH...Regards,
Manas _________________ There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948) |
|
| Back to top |
|
 |
|
|
|