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
 

 

EBCDIC to ASCII conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
HABBIE

New User


Joined: 08 Jul 2014
Posts: 24
Location: INDIA

PostPosted: Thu Aug 21, 2014 7:30 pm    Post subject: EBCDIC to ASCII conversion
Reply with quote

Hi,
I need to convert some EBCDIC format to ASCII format on linux. I am using through DD statement on linux but it is failing for packed decimals.
Is there any command prompt that can be run on linux for my conversions from EBCDIC to ASCII formats.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Thu Aug 21, 2014 7:44 pm    Post subject: Reply to: EBCDIC to ASCII conversion
Reply with quote

EBCDIC if for "text" and control characters. ASCII is for "text2 and control characters.

Why can't you see any reference to packed-decimal, floating-point, binary? Because they are neither EBCDIC nor ASCII. Their values can easily overlap with textual data. If your data contains "non-text" fields, then you will screw it up if you do EBCDIC to ASCII (or ASCII to EBCDIC).

Now, what was your problem? Oh, yes, screwed-up data. Only way you'll do it without suspect practices is to convert all your "non-text" fields to "text". Simple.Two-minute job. Then EBCDIC to ASCII is fine.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Aug 21, 2014 11:46 pm    Post subject:
Reply with quote

iconv will convert EBCDIC to ASCII and vice versa. However, if you use it on a data set with packed decimal data, your data WILL be changed in ways you do not want. You only want to convert from EBCDIC to ASCII when there are no binary nor packed decimal data in any record.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
No new posts Converting EBCDIC to Unicode (TimeStamp) muralikrishnan_new COBOL Programming 2 Mon Jul 25, 2016 10:42 pm
No new posts Comparex utility to Syncsort conversion mistah kurtz SYNCSORT 11 Fri Jul 22, 2016 1:53 pm


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