View previous topic :: View next topic
|
Author |
Message |
crazyf1
New User
Joined: 05 May 2006 Posts: 26
|
|
|
|
Hi
Is there a way to transfer an ebcdic file to a pc? I am trying to use different format but still unsuccessful, the output is still garbled. Can someone help me with this?? Is this a parameter only? Also the file contains print characters and if I try to use a type I or bin, the output is more wrong.
Thanks |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
Back to top |
|
|
crazyf1
New User
Joined: 05 May 2006 Posts: 26
|
|
|
|
Thanks but Windows doesn't understand the EBCIDIC mode of transfer. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
To windows, the transfer mode would have to be BINARY. |
|
Back to top |
|
|
crazyf1
New User
Joined: 05 May 2006 Posts: 26
|
|
|
|
The output is wrong using binary transfer... |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Wrong in what manner? Does a hex dump look the same as the original data? |
|
Back to top |
|
|
crazyf1
New User
Joined: 05 May 2006 Posts: 26
|
|
|
|
using binary the output is "??????????@????@????@??????????a???????????@???"
wherein output should be "0000016280 8203 0089 7468628006/11MTESTCARD XLS 3-100906" if I try to use ascii, the output is parly correct up to the place where there are print control characters where line numbers and order are changed. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
When I FTP to Windows 2000, in BINARY mode, a dataset with the same record as you showed:
Code: |
0000016280 8203 0089 7468628006/11MTESTCARD XLS 3-100906
FFFFFFFFFF4FFFF4FFFF4FFFFFFFFFF6FFDECEECCDC4EDE4F6FFFFFF4444444444444444
000001628008203000890746862800611143523319407320301009060000000000000000
|
I get this file:
Code: |
C:\temp>debug mytest.txt
-d
179C:0100 F0 F0 F0 F0 F0 F1 F6 F2-F8 F0 40 F8 F2 F0 F3 40 ..........@....@
179C:0110 F0 F0 F8 F9 40 F7 F4 F6-F8 F6 F2 F8 F0 F0 F6 61 ....@..........a
179C:0120 F1 F1 D4 E3 C5 E2 E3 C3-C1 D9 C4 40 E7 D3 E2 40 ...........@...@
179C:0130 F3 60 F1 F0 F0 F9 F0 F6-40 40 40 40 40 40 40 40 .`......@@@@@@@@
179C:0140 40 40 40 40 40 40 40 40-40 40 40 40 40 40 40 40 @@@@@@@@@@@@@@@@
179C:0150 40 40 40 40 40 40 40 40-40 40 40 40 40 40 40 40 @@@@@@@@@@@@@@@@
179C:0160 40 40 40 40 40 40 40 40-40 40 40 40 40 40 40 40 @@@@@@@@@@@@@@@@
179C:0170 40 40 40 40 40 40 40 40-40 40 40 40 40 40 40 40 @@@@@@@@@@@@@@@@
-
|
Now, those hex values look exactly the same to me, so I don't know what you mean by the file being "garbled". |
|
Back to top |
|
|
aavugari mayuri
New User
Joined: 15 Aug 2006 Posts: 10
|
|
|
|
Hi Crazyf1
you have to convert the EBCDIC characters to ASCII in the program itself.
BINARY mode is usually used to transfer Large objects. i mean BLOBS.
so try converting in the code and tranfer in ASCII mode..
if your data(i mean the file you are transferring) is a mixture of EBCDIC and BLOBS .then convert the EBCDIC characters to ASCII and transfer the file in BINARY mode..
hope this helps..
Mayuri |
|
Back to top |
|
|
|