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

Problem in ftp as | delimiter gets converted to special char


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CHANDAN KAPOOR

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Mon Oct 31, 2011 11:50 pm
Reply with quote

Hi ,

I have unload file having '|' as delimiter , when I ftp this file to windows in .txt format . | gets converted to some special char .

Can anybody help in this.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Mon Oct 31, 2011 11:54 pm
Reply with quote

Is it an X'4F' in EBCDIC?
Back to top
View user's profile Send private message
CHANDAN KAPOOR

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Mon Oct 31, 2011 11:58 pm
Reply with quote

How can I have | in the .txt file .
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Nov 01, 2011 12:02 am
Reply with quote

Try making sure it's a logical 'OR' Hex '4F' in EBCDIC...
Back to top
View user's profile Send private message
CHANDAN KAPOOR

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Tue Nov 01, 2011 12:11 am
Reply with quote

Is there any way I can get the ASCII code for | so that I can use corresponding EBCDIC which I can as delimiter in mainframes.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Nov 01, 2011 12:17 am
Reply with quote

CHANDAN KAPOOR wrote:
Is there any way I can get the ASCII code for | so that I can use corresponding EBCDIC which I can as delimiter in mainframes.

Assuming that you run Windows on your workstation, look at the Character Map accessory.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Nov 01, 2011 12:33 am
Reply with quote

I'm confused as to which way round you want things.

x'4F' is the Logical Or/Pipe/Vertical Bar/Vertical Line in EBCDIC.

x'7C' is the same in ASCII.

Assuming standard translation.

Again assuming standard translation, when the ftp does EBCIDIC to ASCII the character should appear correctly on the target sytem. Same with ftp from target.

Immediately after the ftp try to look at the file with an "editor". If you don't see "|" then you have to look at the "code tables". If you see "|", then something down the line is interpreting the x'7C' as another character.
Back to top
View user's profile Send private message
CHANDAN KAPOOR

New User


Joined: 12 Apr 2008
Posts: 36
Location: NOIDA

PostPosted: Tue Nov 01, 2011 1:25 am
Reply with quote

Hi Bill,

Thanks for your reply can u please assist me that how can I view this file in editor after the ftp.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Nov 01, 2011 1:27 am
Reply with quote

Quote:
Thanks for your reply can u please assist me that how can I view this file in editor after the ftp.
icon_question.gif icon_question.gif icon_question.gif
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Nov 01, 2011 1:45 am
Reply with quote

Yes, well.... you didn't actually mention what sort of system is your ftp target. Even then, I think your own colleagues would be a better source of information. It doesn't even have to be an editor. If you don't know the system, just ask someone, nicely, if they can show you the first screenful of records on the file.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Nov 04, 2011 6:51 pm
Reply with quote

CHANDAN KAPOOR wrote:
I have unload file having '|' as delimiter , when I ftp this file to windows in .txt format . | gets converted to some special char .
As you're reluctant to answer what Kevin has asked and then suggested and later explained by Bill -- why don't you live with the new some special char, I belive the change is universal across the file and it will still serve the purpose of delimiter, no?
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
Search our Forums:

Back to Top