Find invalid (non-display) characters

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
gcotterl
Posts: 238
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Find invalid (non-display) characters

Post by gcotterl »

When I upload a text file to an ASCII file in an IBM mainframe dataset then open the dataset (to browse or edit it), I get a message saying:

"Data contains invalid (non-display) characters. Use command FIND P'.' to position cursor to these"

When I do that, a display says:"CHARS X'25' found.

How can I see those find those characters in the text file?
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I don't understand that. But hex 25 is '%' in ASCII and LF in EBCDIC. Neither of these, I suspect, is an "invalid (non-display) character", whatever that is.
gcotterl
Posts: 238
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Find invalid (non-display) characters

Post by gcotterl »

Hi Ben,

The person that created the text-file removed the "extra" characters and that fixed the "invalid (non-display) characters" problem.

Thanks for your input!!!!

Gary
redcairo
Posts: 39
Joined: Fri May 06, 2011 6:34 am

Post by redcairo »

Just so it is on this thread, for future searches:

I had a similar problem which I was able to mostly-solve by using posix regex

search: [€-ÿ]

on find-in-files to show me "non-normal" text characters that would have to be changed before I could import stuff into my corp's software. That tip was shared by one of the experts here.
User avatar
gltackett
Posts: 3
Joined: Sat Oct 22, 2005 2:48 pm
Location: Virginia

Post by gltackett »

I have found that the regex search string below

Code: Select all

[^\t -~]
works very well for finding any character that isn't a printable 7-bit ASCII character. (For this purpose I include space and tab as printable.)

Since it may not be readily visible, please note that there is a space character in between the "t" and "-" in the string.
jerry0503214
Posts: 3
Joined: Sat Dec 31, 2011 7:28 am

Post by jerry0503214 »

The person that created the text-file removed the "extra" characters and that fixed the "invalid (non-display) characters" problem.

Thanks for your input!!












________________________________
WOW Gold | Runescape Money
Post Reply