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 corrupted Record

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

New User


Joined: 24 Feb 2005
Posts: 8
Location: Mumbai

PostPosted: Fri Mar 04, 2005 6:18 pm    Post subject: Finding corrupted Record
Reply with quote

Hi Guys,

If i have 1000 records in a file and i want to know how many records are corrupted is there any way,i searched for this mauals,if u have any idea please help me.

Regards
Back to top
View user's profile Send private message

ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Fri Mar 04, 2005 7:58 pm    Post subject:
Reply with quote

As I know this is asked in PATNI Interview. The same question I asked in the forum months ago, But I didn't get reply. I think you can do this using File-AID. Use format option of File-AID. It will find out the defected records. Try this and let me know the result.

Bye,
Reddy.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Sat Mar 05, 2005 6:22 pm    Post subject:
Reply with quote

Invrn,

Can you please tell us..what exactly do you mean by CORRUPTED?

Regards
Mayuresh
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sat Mar 05, 2005 9:11 pm    Post subject: Re
Reply with quote

Dear Friends,

Anybody here to explain Artificial Intelligence?
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Sat Mar 05, 2005 10:06 pm    Post subject:
Reply with quote

priya

Even after posting 167 replies its really sad to let you know the forum rules.

PLEASE START A NEW TOPIC FOR YOUR QUERIES

Regards
Mayuresh
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sat Mar 05, 2005 11:23 pm    Post subject: Re
Reply with quote

Quote:
Even after posting 167 replies its really sad to let you know the forum rules


You misunderstand me!

I just replied to the Topic...What I mean is,

Quote:
If i have 1000 records in a file and i want to know how many records are corrupted is there any way


One should know AI to solve this problem, I believe!

Anyway, I got one solution...

Read the records from a CICS program one by one, if no Exception write the records in a new file. If you got any EXCEPTION (Corrupted records), HANDLE that CONDITION, Ignore the record and continue the process.

So now you got a new file only with uncorrupted records. Compare this new file with old one, now you can easily identify the corrupted records.
Back to top
View user's profile Send private message
lnvrn

New User


Joined: 24 Feb 2005
Posts: 8
Location: Mumbai

PostPosted: Mon Mar 07, 2005 9:42 am    Post subject:
Reply with quote

Hi OVREDDY,

Thanks for repply,can I know by using FILE-AID how can we achieve that,please explain the procee.

Thanks & Regards
Back to top
View user's profile Send private message
ram_javvaji

New User


Joined: 07 Mar 2005
Posts: 2
Location: chennai

PostPosted: Mon Mar 07, 2005 2:03 pm    Post subject: Re: Finding corrupted Record
Reply with quote

hai ram here


$dd01 drop if = ( starting position, length,NEP)
nep -- not equal to pack

haui u know that u have some corrupted field in ur record give the start position , lenght of that field in that
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 238
Location: USA

PostPosted: Mon Mar 07, 2005 4:27 pm    Post subject:
Reply with quote

Oh icon_redface.gif
It really requires AI to figure out your response....priya

Regards
Mayuresh
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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm


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