Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HEader&trailer record validation

Status
Not open for further replies.

kpmINFO

IS-IT--Management
Apr 1, 2004
77
US
HI,

My src file is flat file with HDR and TRL records, I have to peform Header and Trailer record validations , I knew they can be achieved in Unix, but im looking at an informatica solution, where in i have to read the total records and validate number of records in detail with total record count in trailer if it matches continue processing else fail it , has anybody done this before please provide me vth ur valuable inputs.

Thanks,
KPMINFO
 
Just a thought:

1. Load the trailer record to a seperate table (just load the record count)
2. Load the flatfile to an intermediate table.
3. Create database view that holds record count (something like : Select count(*) from intermediate where.....)
4. Create definite mapping and perform lookup on the table&view and use logic to load or not to target..


T. Blom
Information analyst
tbl@shimano-eu.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top