Advertisement

08.07.2007 at 11:17AM PDT, ID: 22747326 | Points: 500
[x]
Attachment Details

EBCDIC to ASCII Conversion

Tags: ebcdic, ascii, java, conversion
Need a sample java code to convert EBCDIC data to ASCII Format.
Start your free trial to view this solution
Question Stats
Zone: OS
Question Asked By: Sumedh_D
Question Asked On: 08.07.2007
Participating Experts: 6
Points: 500
Views: 0
Translate:
Loading Advertisement...
08.07.2007 at 11:38AM PDT, ID: 19648508

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.07.2007 at 02:35PM PDT, ID: 19649862

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.08.2007 at 06:59PM PDT, ID: 19659262

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.09.2007 at 05:23PM PDT, ID: 19666982

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
08.14.2007 at 05:22AM PDT, ID: 19691142

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.01.2008 at 02:35PM PDT, ID: 21258336

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
06.24.2008 at 02:44PM PDT, ID: 21860685

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
08.07.2007 at 11:38AM PDT, ID: 19648508
I've never done such a conversion before.  EBCDIC isn't the most universal of character sets.  But, here's a link that might help:

http://codesnipers.com/?q=node/155

If I find something more concrete, I'll post it here.
 
08.07.2007 at 02:35PM PDT, ID: 19649862
You might run into some interesting problems if your EBCDIC data contains any packed data fields.  If your data has packed data, then you will need to do field by field conversion.
 
08.08.2007 at 06:59PM PDT, ID: 19659262
Why?  If you are running a application on a distributed platform and getting data from IBM mainframe, depending on how you are doing this it should be converted automatically.  Execpt of course in the case of transfer the data in binary mode.

Example:  If you are conneting to DB2 on z/OS using IBM's type 4 JDBC driver, DB2 on the mainframe will convert the code to Unicode (I forget the exact code page) and then the JDBC driver will convert to ASCII.
 
08.09.2007 at 05:23PM PDT, ID: 19666982
Packed data is sometimes considered binary because it is non printable.  In order to be printable, it must first be unpacked.

Ideally, if the EBCDIC record contains packed data, I would recommend that it first be unpacked, then the EBCDIC to ASCII translation will be much easier.
 
08.14.2007 at 05:22AM PDT, ID: 19691142
what do you need to do ? what is your goal ?
 
04.01.2008 at 02:35PM PDT, ID: 21258336
This looks like a good start:
http://forum.java.sun.com/thread.jspa?threadID=446495&messageID=2020732

   You may find some inconsistencies in the conversions however - I have developed my own translate table for EBCDIC to ASCII because of this problem - attached below. I've got a REXX example of the same if you're interested.......

SWS
 
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
###############################################
#    EBCDIC to ASCII transaltion table        #
###############################################
TRTABO   DC    256AL1(*-TRTABO)                  
         ORG   TRTABO+X'40'                      
         DC    X'20'                             
         ORG   TRTABO+X'4B'                      
         DC    X'2E3C282B7C26'                   
         ORG   TRTABO+X'5A'                      
         DC    X'21242A293B5F2D2F'               
         ORG   TRTABO+X'6B'                      
         DC    X'2C255F3E3F'                     
         ORG   TRTABO+X'7A'                      
         DC    X'3A2340273D22'                   
         ORG   TRTABO+X'81'                      
         DC    X'6162636465666768697B'           
         ORG   TRTABO+X'91'                      
         DC    X'6A6B6C6D6E6F7071727D'           
         ORG   TRTABO+X'9C'                      
         DC    X'07'                             
         ORG   TRTABO+X'A1'                      
         DC    X'7E737475767778797A'             
         ORG   TRTABO+X'C0'                      
         DC    X'7B414243444546474849'           
         ORG   TRTABO+X'D0'                      
         DC    X'7D4A4B4C4D4E4F505152'           
         ORG   TRTABO+X'E0'                      
         DC    X'5C'                             
         ORG   TRTABO+X'E2'                      
         DC    X'535455565758595A'               
         ORG   TRTABO+X'F0'                      
         DC    X'303132333435363738397C'         
         ORG                                     
###############################################
#    ASCII to EBCDIC transaltion table        #
###############################################
TRTABI   DC    256AL1(*-TRTABI)                            
         ORG   TRTABI+X'20'                                
         DC    X'405A7F7B5B6C507D4D5D5C4E6B604B61'         
         ORG   TRTABI+X'30'                                
         DC    X'F0F1F2F3F4F5F6F7F8F97A5E4C7E6E6F'         
         ORG   TRTABI+X'40'                                
         DC    X'7CC1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9'   
         DC    X'E2E3E4E5E6E7E8E9'                         
         ORG   TRTABI+X'5C'                                
         DC    X'E0'                                       
         ORG   TRTABI+X'5F'                                
         DC    X'6D79C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7D8D9' 
         DC    X'E2E3E4E5E6E7E8E9C0FAD0A1'                 
         ORG                                               
Open in New Window
 
06.24.2008 at 02:44PM PDT, ID: 21860685
One of the option is to use the iconv() APIs for true CCSID conversions. This allows for programming that can more easily adapt to different languages, different system and job CCSIDs, various flavors of Unicode, etc.
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628