Moving Persisted Hashed Files from Windows to Unix(AIX)

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
Bryceson
Charter Member
Charter Member
Posts: 88
Joined: Wed Aug 03, 2005 1:11 pm
Location: Madison, WI

Moving Persisted Hashed Files from Windows to Unix(AIX)

Post by Bryceson »

Folks,

We are migrating our DataStage from Windows to Unix and have hashed files that contain Surrogate Keys.

If we can replicate the Hashed File directory structure under Windows to a corresponding structure in the target environment (AIX) and migrate all of the files/Data found in that structure, however I am not convinced . . . will this produce the desired results??. :idea:

What are the other things we need to make sure are done for our persisted Hashed files to be in the same state after the move??.

Thanks in advance for your ideas.

Bryceson
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

I also had similar questions, take a look at the following post
viewtopic.php?p=182232
Success consists of getting up just one more time than you fall.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

They won't be in the same state. You're going to need to dump your hashed files to sequential text files, ftp them to the unix box, then load them into the hashed files on the unix side. This will cause your hashed files to build fresh.

If you have STATIC or specialty tuned (minimum modulos, etc) hashed files, you're going to need to create them the exact same way first on the unix side.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Bryceson
Charter Member
Charter Member
Posts: 88
Joined: Wed Aug 03, 2005 1:11 pm
Location: Madison, WI

Post by Bryceson »

Ken,

Thanks for your knowledge!!

How do I need to handle the surrogate key that are created in DataStage at the project level then if the Hashed files are going to build fresh??

Thanks . . . Bryceson
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

If you are talking about your hashed files created within the DataStage projects, you must also dump them to files and create on the unix side. If you mean things like the hashed files used in the SDK functions, you must copy those over as well.

The thing to consider on those files is to build a job that refreshes them anyway by doing SELECT MAX(yourskey) on yourtable as part of your jobstreams.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is a utility called format.conv (or fnuxi - a synonym) that has -import and -export (and other) options for performing exactly this task.

Initial information can be obtained by executing the command HELP FORMAT.CONV from a dssh prompt on the server; full information exists only in UniVerse manuals, which can be downloaded from IBM.
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