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
 

 

How to convert ASCII to HEXA format..

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to convert ASCII to HEXA format..
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: 1224
Location: Israel

PostPosted: Mon Feb 26, 2007 6:29 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

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

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

Site Director


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

PostPosted: Mon Feb 26, 2007 9:42 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


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