SCD typeII implementation
Moderators: chulett, rschirm, roy
SCD typeII implementation
I need to Use SCD stage in data stage parallel 8. in my design, I have a source table which lookup dimension table based on primary key, and tgt table have startdate,end_date along with the Src table.
inside the SCD stage there are options to generate surrogate key using flat file option.I need to know whether this flatfile is created at runtime or do i need to create it manually before using the file. and if so how to create it?
there are some flat file created already,which is there in the repository(No idea how that was created), when i try to use that file,the SCD stage is not reading the particular flatfile. am getting the error as:
APT_CombinedOperatorController(0),0: Lookup table is empty, no further warnings will be issued.
APT_CombinedOperatorController(0),0: Unable to read state file /home/dsadm/dsinputfiles/s_key_src.csv: Invalid argument.
Unable to read state file /home/dsadm/dsinputfiles/s_key_src.csv: Invalid argument.
one more doubt: regarding state file in SCD stage...wat are statefiles and how they created...
inside the SCD stage there are options to generate surrogate key using flat file option.I need to know whether this flatfile is created at runtime or do i need to create it manually before using the file. and if so how to create it?
there are some flat file created already,which is there in the repository(No idea how that was created), when i try to use that file,the SCD stage is not reading the particular flatfile. am getting the error as:
APT_CombinedOperatorController(0),0: Lookup table is empty, no further warnings will be issued.
APT_CombinedOperatorController(0),0: Unable to read state file /home/dsadm/dsinputfiles/s_key_src.csv: Invalid argument.
Unable to read state file /home/dsadm/dsinputfiles/s_key_src.csv: Invalid argument.
one more doubt: regarding state file in SCD stage...wat are statefiles and how they created...
All answered in the product documentation. In particular study the Surrogate Key Generator stage and the Slowly Changing Dimension stage.
The Surrogate Key Generator stage produces a state file... basically the metadata that keeps track of the surrogate key value.
The Slowly Changing Dimension stage is one stage that can utilize the state file for generating surrogate keys. It is a very powerful stage that makes slowly changing dimension logic virtually trivial to implement.
Mike
The Surrogate Key Generator stage produces a state file... basically the metadata that keeps track of the surrogate key value.
The Slowly Changing Dimension stage is one stage that can utilize the state file for generating surrogate keys. It is a very powerful stage that makes slowly changing dimension logic virtually trivial to implement.
Mike
-
- Premium Member
- Posts: 425
- Joined: Sat Nov 19, 2005 9:26 am
- Location: New York City
- Contact:
I'm not concerned with how Datastage manages the state file... just that it does manage it automatically. I haven't tested thoroughly enough to see how it handles concurrent key generating processes, but that's not a concern for me. I use a state file per table and only one job to generate keys for a given table.
Mike
Mike
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: