Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP of an ebcdic file to pc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
crazyf1

New User


Joined: 05 May 2006
Posts: 27

PostPosted: Wed Oct 25, 2006 11:56 am    Post subject: FTP of an ebcdic file to pc
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: 1105
Location: The Netherlands at Hole 19

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

Did some Google and found this one:

http://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: 27

PostPosted: Wed Oct 25, 2006 2:04 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Oct 25, 2006 3:14 pm    Post subject: Re: FTP of an ebcdic file to pc
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: 27

PostPosted: Thu Oct 26, 2006 6:47 am    Post subject: Re: FTP of an ebcdic file to pc
Reply with quote

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

Moderator Team Head


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

PostPosted: Thu Oct 26, 2006 8:29 am    Post subject: Re: FTP of an ebcdic file to pc
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: 27

PostPosted: Thu Oct 26, 2006 9:46 am    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Oct 26, 2006 5:51 pm    Post subject: Re: FTP of an ebcdic file to pc
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
crazyf1

New User


Joined: 05 May 2006
Posts: 27

PostPosted: Fri Oct 27, 2006 6:12 am    Post subject:
Reply with quote

This should be the output

Code:

000001
6280 8203 0089 7468
6280
06/11
M
TESTCARD XLS 3-100906     
                         
04>G\\D01=6280 8203 0089 7468~\D02=06/11      ~\D03=TESTCARD XLS 3-100906     ~\D04=                          ~\\:7468 000"%B6280820300897468^3-100906/TESTCARD XLS     ^11062010000234010000?;6280820300897468=11062010000234010000?@1@CHSUPLOC.DOT        @061804@     000        @BECC OPS                                          @TESTCARD XLS 3-100906         @TESTCARD XLS 1                @C/O TSS                       @17F BPI CARD CENTER           @1200 PASEO MAKATI             @1200@50,000.00     @L00897468S @     @50,000.00     @50,000.00     @50,000.00     @15,000.00     @18TH OF EVERY MONTH@21 DAYS AFTER@                    @     *                                    06/116280 8203 0089 74680001030                     00000000000000000000000000000000000000000000000000000000000000000201009009581216LN@         0001!0000000000000179BPI00901D233F000000001106001030030000TESTCARD XLS 3-100906       62808203008974681980010801010100FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000{0000043   %              _%? @@            #end#


however this is what i get using binary transfer

Code:

??????
????@????@????@????
????
??a??
?
????????@???@?`??????@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@
??n??????~????@????@????@?????????~??a??@@@@@@?????~????????@???@?`??????@@@@@?????~@@@@@@@@@@@@@@@@@@@@@@@@@@???z????@???l?????????????????_?`??????a????????@???@@@@@_????????????????????o^????????????????~????????????????????o|?|????????K???@@@@@@@@|??????|@@@@@???@@@@@@@@|????@???@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|????????@???@?`??????@@@@@@@@@|????????@???@?@@@@@@@@@@@@@@@@|?a?@???@@@@@@@@@@@@@@@@@@@@@@@|???@???@????@??????@@@@@@@@@@@|????@?????@??????@@@@@@@@@@@@@|????|??k???K??@@@@@|??????????@|@@@@@|??k???K??@@@@@|??k???K??@@@@@|??k???K??@@@@@|??k???K??@@@@@|????@??@?????@?????|??@????@?????|@@@@@@@@@@@@@@@@@@@@|@@@@@\@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@??a??????@????@????@???????????@@@@@@@@@@@@@@@@@@@@@??????????????????????????????????????????????????????????????????????????????????|@@@@@@@@@????Z?????????????????????????????????????????????????????????????@???@?`??????@@@@@@@????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????   %              _%? @@


and ascii
Code:

000001
6280 8203 0089 7468
6280
06/11
M
TESTCARD XLS 3-100906     
                         
04>G\\D01=6280 8203 0089 7468~\D02=06/11      ~\D03=TESTCARD XLS 3-100906     ~\D04=                          ~\\:7468 000"%B6280820300897468^3-100906/TESTCARD XLS     ^11062010000234010000?;6280820300897468=11062010000234010000?@1@CHSUPLOC.DOT        @061804@     000        @BECC OPS                                          @TESTCARD XLS 3-100906         @TESTCARD XLS 1                @C/O TSS                       @17F BPI CARD CENTER           @1200 PASEO MAKATI             @1200@50,000.00     @L00897468S @     @50,000.00     @50,000.00     @50,000.00     @15,000.00     @18TH OF EVERY MONTH@21 DAYS AFTER@                    @     *                                    06/116280 8203 0089 74680001030                     00000000000000000000000000000000000000000000000000000000000000000201009009581216LN@         0001!0000000000000179BPI00901D233F000000001106001030030000TESTCARD XLS 3-100906       62808203008974681980010801010100FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000{0000043   
              ^
?  #end#



Using ascii mode, more characters are correct however the line numbers are change and some characters are wrong.
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us