Comparing CFF files , Record to Record !
Moderators: chulett, rschirm, roy
Comparing CFF files , Record to Record !
I have two CFF files one from the Production and one from the DEV. Now I need to compare "records" / "fields" for these two files to check if the data from both the ENV matches.
Some fields in DEV data are not in Production yet, in that case we'll have to tell the job not to perform a compare record-for-record in those cases, but rather field-to-field. I need to compare all rows !!
I think I need to use indicators for each field which say "Y" if the data matches, "F" in the field matches and "N" if there is a mismatch. Indicators are not that important but I need a way to compare the data (i think indicators are the easiest to do it).
Any Ideas ??
Some fields in DEV data are not in Production yet, in that case we'll have to tell the job not to perform a compare record-for-record in those cases, but rather field-to-field. I need to compare all rows !!
I think I need to use indicators for each field which say "Y" if the data matches, "F" in the field matches and "N" if there is a mismatch. Indicators are not that important but I need a way to compare the data (i think indicators are the easiest to do it).
Any Ideas ??
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Of course you can do in in server. Set up a stage variable for each comparison. Tedious, perhaps, but not difficult.
Parallel jobs have inbuild stage types for change detection (Difference, Compare and Change Capture stages). They tend to make this kind of task less tedious.
Parallel jobs have inbuild stage types for change detection (Difference, Compare and Change Capture stages). They tend to make this kind of task less tedious.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
In the Transformer stage you open the stage properties window (use the leftmost tool on the toolbar), then select the Variables tab.
You will need one stage variable for each field. The result of the expression is whatever you like, either a true/false, or a "flag" as suggested earlier.
You may also need to "show stage variables" so that you can see the stage variables grid in the design canvas.
Further stage variables can be used to consolidate the overall answer (for example, record contains no changes).
You will need one stage variable for each field. The result of the expression is whatever you like, either a true/false, or a "flag" as suggested earlier.
You may also need to "show stage variables" so that you can see the stage variables grid in the design canvas.
Further stage variables can be used to consolidate the overall answer (for example, record contains no changes).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
If its a delimited file, first count number of delimiter using either DCOUNT or other functions available. If it the number of fields is as expected, do a lookup against production file. If all the fields matches, marks the flag as 'Y'.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: