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
 

 

Finding Non-ascii characters?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rehan

New User


Joined: 13 May 2007
Posts: 6
Location: India

PostPosted: Sun Nov 15, 2009 7:45 pm    Post subject: Finding Non-ascii characters?
Reply with quote

Hi Friends,
Can any one tell is there a way to find non-ascii chracters in a seq file?
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Sun Nov 15, 2009 7:58 pm    Post subject:
Reply with quote

If the sequential file is on the mainframe, ALL CHARACTERS ARE NON-ASCII. Mainframes use EBCDIC, not ASCII.
Back to top
View user's profile Send private message
rehan

New User


Joined: 13 May 2007
Posts: 6
Location: India

PostPosted: Sun Nov 15, 2009 8:09 pm    Post subject:
Reply with quote

thanx for replying what i need is my files are sent for printing and the printing system identifies only ASCII characters and the recently printing system has identified junk values in the file
can u tell me how to avoid this in future?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Sun Nov 15, 2009 8:24 pm    Post subject:
Reply with quote

First, you have to find out which characters the printer doesn't support -- the upper and lower case letters and numbers are always supported, but the special characters can be problems.

Then, you need to write code (program or SORT statements) that examine each and every character of your file and replace any of the invalid characters with something valid (such as a space).

Then, be aware that scanning a file character by character is a time-consuming process and there's not a whole lot you can do to reduce the amount of time it takes.
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: Sun Nov 15, 2009 10:57 pm    Post subject:
Reply with quote

Hello,

Suggest you look at the process that generates the file to be sent and make sure there are no invalid characters in the data. Two of the biggest causes of this is uninitialized data in the output or sending a binary or packed-decimal value.

As Robert mentioned, it is quite expensive passing an entire file and looking at every character to be sure it is acceptable.

Far better to create the file correctly in the first place.
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 EBCDIC to ASCII conversion using OCOPY mistah kurtz All Other Mainframe Topics 5 Tue Sep 06, 2016 2:26 pm
No new posts Finding unreferenced datasets without... Alan Playford JCL & VSAM 5 Tue Jul 12, 2016 9:07 pm
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts Finding repetead surnames in differen... blackjack202 DFSORT/ICETOOL 7 Tue Jun 07, 2016 7:42 pm
No new posts Trasnmitting a file with french chara... spoorni IBM Tools 1 Wed Feb 24, 2016 8:13 pm


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