View previous topic :: View next topic
|
Author |
Message |
ramvishwa Warnings : 2 New User
Joined: 18 Dec 2006 Posts: 18 Location: bangalore
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Are you sure your input is in ASCII ?
Usually, Mainframe COBOL uses EBCDIC. |
|
Back to top |
|
|
ramvishwa Warnings : 2 New User
Joined: 18 Dec 2006 Posts: 18 Location: bangalore
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|