MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Identify Invalid data in a sequential file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Jun 10, 2003 12:41 pm    Post subject: Identify Invalid data in a sequential file Reply with quote

Hi,
I have a need to identify invalid data on many files on the mainframe. the issue is similar to that discussed in Posted: Wed Dec 18, 2002 7:07 am Post subject: Validate every byte in a field.
I need to verify these files using a utility - sort/file-aid. We use Syncsort. Thanks
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Tue Jun 10, 2003 10:25 pm    Post subject: Reply with quote

Hi Suresh,

How do you define "invalid" data. I you expect a "Y" in a field that contains "N", that could constitue invalid data.

Regards, Jack.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed Jun 11, 2003 6:45 am    Post subject: Reply with quote

Salde,
My problem is similar to the one that was discussed in the following thread. What I need is a Utility solution for this - Sort/File-Aid. Thanks

http://www.mvsforums.com/helpboards/viewtopic.php?t=134

"I have a module that checks for all the valid characters in the keyboard or else replaces it by spaces. This was developed as our file was transmitted from mainframe to UNIX. Any any junk character from mainframe was interpreted as newline character and the whole record got broken into two lines. so what we did was to remove all the junk characters to spaces. Hope this can be of some help. You can use this to create TAB delimited file for UNIX somewhat similar to earlier solutions "
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 699
Topics: 63
Location: USA

PostPosted: Fri Jun 13, 2003 12:23 am    Post subject: Reply with quote

If you are expecting just a few junk characters and know the hex value then you can refer to this file-aid solution. Eg, if you want to change all low values by spaces you will use - REPLALL=(01,00,X'00',C' '). Here 01 is starting position, 00 represents upto end of record, X'00' is for low values and C' ' is for spaces.

Diba.
Back to top
View user's profile Send private message Send e-mail
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sat Jun 14, 2003 8:33 pm    Post subject: Reply with quote

Hi Suresh,

Can you provide a list of the invalid chars you're looking to bypass (replace w/spaces)?

If you can, I'm sure an answer would be forthcoming.

Regards, Jack.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group