How do we find bad data in a file?

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
Bobbie V
New Member
Posts: 8
Joined: Wed Feb 17, 2016 9:36 am

How do we find bad data in a file?

Post by Bobbie V »

Hi,

How do we find bad data in a file?
User avatar
Akshya Chopra
Registered Member
Posts: 77
Joined: Mon May 20, 2013 11:32 pm
Algeria

Re: How do we find bad data in a file?

Post by Akshya Chopra »

Use command f all x'05' you can find bad data.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: How do we find bad data in a file?

Post by enrico-sorichetti »

How do we find bad data in a file?
define what you consider bad data

without that any answer will rank from useless to wrong

note ...
x'05' is a perfectly good char for binary and packed numerics




 
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How do we find bad data in a file?

Post by Robert Sample »

It depends upon what you mean by "bad data" -- since what you consider bad may be perfectly valid.  For example, consider the hex characters X'0097995D'.  If they are treated as packed decimal, the value is -97995.  If they are treated as binary, the value is 9,935,197.  If they are treated as EBCDIC characters, they are "<nul>pr)" 

So which interpretation is "correct" and which are "bad data"?  That totally depends upon how you look at the value.  All three interpretations are of the same data and may represent something good.
Bobbie V
New Member
Posts: 8
Joined: Wed Feb 17, 2016 9:36 am

Re: How do we find bad data in a file?

Post by Bobbie V »

Akshya Chopra" wrote: Wed Feb 14, 2024 12:49 pm Use command f all x'05' you can find bad data.
This is working, but will this find all the bad data?
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: How do we find bad data in a file?

Post by enrico-sorichetti »

again ...

DEFINE WHAT YOU CONSIDER BAD DATA

 
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Other Mainframe Topics, Off-Topics, FAQs.”