what is the solution to get sequence numbers in DS server jo

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sunitha_cts
Participant
Posts: 98
Joined: Thu Feb 05, 2009 1:14 am
Location: visakhapatnam
Contact:

what is the solution to get sequence numbers in DS server jo

Post by sunitha_cts »

HI,

The first and foremost thing ,I did was we got data in the form of flat files, I have 2 flat files say f1 and f2 ,read f1 names file and check if name stem (first 4 characters of name )is present in f2 names stem file flat file.I f found update sequence number else add new name stem with sequence number, increment sequence number or all records in f2 by 1. Finally we are comparing a column from one flat file with acolumn in second flat file .
Kindly give a solution to this problem

Thanks
Sunitha
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You may need an hash file to store the list of values and reference it back.

Alternatively you can do in 2 jobs - one to lookup and write missing records, second to use it together with your original reference file to load the target.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A useful hashed file is SDKSequences. You can access this through the SDK key management routines (among other methods).
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