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

How to convert ASCII to HEXA format..


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Mon Feb 26, 2007 5:08 pm
Reply with quote

Hi,
Is there any COBOL Function to covert ASCII to HEXA decimal format.
Or else any logic to convert it..Plz find me a solution..





Thanks in advance..
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Feb 26, 2007 6:29 pm
Reply with quote

Are you sure your input is in ASCII ?
Usually, Mainframe COBOL uses EBCDIC.
Back to top
View user's profile Send private message
ramvishwa
Warnings : 2

New User


Joined: 18 Dec 2006
Posts: 18
Location: bangalore

PostPosted: Mon Feb 26, 2007 6:54 pm
Reply with quote

Marso wrote:
Are you sure your input is in ASCII ?
Usually, Mainframe COBOL uses EBCDIC.


k let me make it clear... All my input's are in text format.. i want to convert into Hexadecimal format.. So is there any function to convert.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 7:11 pm
Reply with quote

Look here
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Feb 26, 2007 9:42 pm
Reply with quote

Hello,

Where did your text format files originate? If they came from an ASCII platform (inix, nt, etc) and contain only text (no binary fields), you do not need to convert them inside your code.

When the file is transmitted from the source to the target (mainframe, i hope?) the ASCII to EBCDIC translation is automatic (as long as you do not use binary transfer). Most often these transfers are done via FTP and all of the FTP products i've seen support this.

Please let us know if you need additional info.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts InfoSphere OPTIM CSV ouput vs DSNTIUA... IBM Tools 3
Search our Forums:

Back to Top