Originally posted by: SystemAdmin
Hello! Have a modification to add to this topic.
Would like to still create a test file with random SSNs generated but with a little twist here. The input file has 2 record types, S for Subscriber and D for Dependents, there can be 0 or many Dependents per Subscriber and the record lengths are the same for these types.
Ex.
S000003 111111111 111111111SMITH
S000004 222222222 222222222THOMPSON
D000005 222222222 222223333THOMPSON JR
S000006 333333333 333333333RICKARDS
D000007 333333333 333334444RICKARDS JR
S000008 444444444 444444444HORN
The Subscriber SSN is in position 23 for length of 9 and this SSN links Dependents to the Subscriber record, such as 222222222 for Thompson above, then position 36 for 9 has that records real SSN, so for the Subscriber record the Subscriber SSN is the same as the real SSN, but for the Dependent record, the real SSN should be different than the Subscriber SSN, such as 222223333 for Thompson Jr, the son of Thompson as in the above sample record text.
The goal is to clone a test file and make say 70 copies of each record above, but keeping the Subscriber and its associated Dependents, if any, with the same Index number increase for the SSNs that are cloned.
Ex. For Thompson above, the first 2 cloned copies of the 1 Subscriber and 1 Dependent record should look as follows.
S000004 222222223 222222223THOMPSON 3
D000005 222222223 222223334THOMPSON JR 3
S000004 222222224 222222224THOMPSON 4
D000005 222222224 222223335THOMPSON JR 4
Therefore, if an incremental Index of 1 is added to each Subscriber SSN to generate a new cloned Subscriber SSN, would like to use the same increment of 1 for the real SSN in position 36, for each record in the Subscriber linked group of records, and also added the new Index value to the end of the Last Name so that it is easier to differentiate the records that were changed.
Would like to use the same function map clone technique recommended previously if possible, but not sure how to keep the linked records together before the incremental index is added to the Subscriber SSN and Real SSN fields.
Would this require the control break logic technique where records could be grouped on a commom value, then you could work with the correct fields in that group and perform the increment process.
Have read something about it in the help pdf, chapter 10 in the Design Studio tutorial, data break by value, but do not fully understand it and how to apply it here.
Would guess the Subscriber SSN that links the records is the data break value but not sure how to do this in the map. Possibly someone may have an example of how to do this Index increment in the map using this technique.
Have one more thing, would the field that has the data break need to be the first field in the record, as in the tutorial, or could it be another field in a later position.
Would appreciate any recommendations or help concerning this.
Thanks!
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender