View previous topic :: View next topic
|
Author |
Message |
lnvrn
New User
Joined: 24 Feb 2005 Posts: 8 Location: Mumbai
|
|
|
|
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 |
|
|
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
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 |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
Invrn,
Can you please tell us..what exactly do you mean by CORRUPTED?
Regards
Mayuresh |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Dear Friends,
Anybody here to explain Artificial Intelligence? |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
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 |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
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 |
|
|
lnvrn
New User
Joined: 24 Feb 2005 Posts: 8 Location: Mumbai
|
|
|
|
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 |
|
|
ram_javvaji
New User
Joined: 07 Mar 2005 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
Oh
It really requires AI to figure out your response....priya
Regards
Mayuresh |
|
Back to top |
|
|
|