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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Locating non ASCII HEX'es in an EBCDIC file & the positi
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

Site Director


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

PostPosted: Mon Mar 19, 2007 7:37 pm    Post subject:
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    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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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