Surrogate key - stat file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Suma Reddy
Participant
Posts: 7
Joined: Mon Oct 30, 2006 12:19 am

Surrogate key - stat file

Post by Suma Reddy »

How to read stat file (FileName.sk) which is generated in surrogate key stage?
suse_dk
Participant
Posts: 93
Joined: Thu Aug 11, 2011 6:18 am
Location: Denmark

Post by suse_dk »

Use the Surrogate key generator to read the state file. Set the option "View state file" = yes
_________________
- Susanne
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or use NextSurrogateKey() function if you actually want a surrogate key value.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Suma Reddy
Participant
Posts: 7
Joined: Mon Oct 30, 2006 12:19 am

Post by Suma Reddy »

Thanks Susanne.

Stat file contains below data
1 2
4 4

This content is based on block size.
How to find out Next surrogate key value from this stat file contents
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So, to clarify, you want to know the next (or, perhaps, current) value without actually incrementing the state file?
This will, of course, be different on different nodes.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply