IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP of an ebcdic file to pc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
crazyf1

New User


Joined: 05 May 2006
Posts: 26

PostPosted: Wed Oct 25, 2006 11:56 am
Reply with quote

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
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Oct 25, 2006 2:00 pm
Reply with quote

Did some Google and found this one:

vm.uconn.edu/cgi-bin/cmshelp?FTP%20EBcdic

hope it helps
Back to top
View user's profile Send private message
crazyf1

New User


Joined: 05 May 2006
Posts: 26

PostPosted: Wed Oct 25, 2006 2:04 pm
Reply with quote

Thanks but Windows doesn't understand the EBCIDIC mode of transfer. icon_cry.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 25, 2006 3:14 pm
Reply with quote

To windows, the transfer mode would have to be BINARY.
Back to top
View user's profile Send private message
crazyf1

New User


Joined: 05 May 2006
Posts: 26

PostPosted: Thu Oct 26, 2006 6:47 am
Reply with quote

The output is wrong using binary transfer... icon_cry.gif
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Oct 26, 2006 8:29 am
Reply with quote

Wrong in what manner? Does a hex dump look the same as the original data?
Back to top
View user's profile Send private message
crazyf1

New User


Joined: 05 May 2006
Posts: 26

PostPosted: Thu Oct 26, 2006 9:46 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Oct 26, 2006 5:51 pm
Reply with quote

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
View user's profile Send private message
aavugari mayuri

New User


Joined: 15 Aug 2006
Posts: 10

PostPosted: Fri Nov 17, 2006 8:00 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top