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

Locating non ASCII HEX'es in an EBCDIC file & the positi


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

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Mon Mar 19, 2007 11:44 am
Reply with quote

We have a requirement to export mainframe data to a windows based system.When the mainframe data is interpreted by the windows system then certain non display or non ASCII(I am assuming) values are causing failures in the insert statements.For example X'FD' is getting rejected.Since the data is large even if we remove one hex value we might miss another.Is there any way to write a cobol program that would scan the mainframe input and generate a list of all the Hex values which are non ASCII and might get rejected by their system and their positions in the data.We could then substitute these with windows legal values.

I am assuming the collating sequence for MF is EBCDIC while that for something like ORACLE is ASCII and hence we are having this problem.So what could be legal in the MF collating sequence is not for ORACLE.Kindly let me know if I am wrong in the assumption.
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 Mar 19, 2007 7:37 pm
Reply with quote

Hello,

"Every" hex value is an ASCII value. One problem is that the hex values on the mainframe do not have the same meaning on ASCII platforms.

In the ASCII world, values "below spaces" are where the ASCII control characters are defined (an ASCII space is an x'20' - values from x'00' to x'1F' are "below spaces". This is not so in the mainframe - mainframe does not use embedded control characters.

I would suggest that when the file is created on the mainframe, all values are converted to delimited text. There should be no binary, packed decimal, or other character that is just a "bit pattern" sent to the target platform. Dealing with these types of fields is much easier on the mainframe (unless you have 3rd part software that will handle this - the products i've seen do not yet do everyting needed).

How did the x'FD' get created on the mainframe?
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top