datastage conversion unix to windows

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
rzandieh
Participant
Posts: 11
Joined: Thu Dec 16, 2004 9:07 am

datastage conversion unix to windows

Post by rzandieh »

if anyone converted datastage7.x from Unix server to windows?
did you encounter many issues going from Unix to windows?
and what kind if any?


Thanks in advance
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The biggest problem I have seen is the "/" to "\". This can be fixed pretty easy if you know some tricks. Most of my routines plan for this so they can fix themselves. The rest are usually in parameters so they are easily fixed. Otherwise just export and import. If you hardcoded path names then you will have problems.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I forgot ExecSH. Shell scripts are another big problem.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I think both of those issues can be resolved by installing something like the MKS Toolkit. It won't help with the performance hit you are probably going to take, however. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Sequential stages with Unix file specified now needs to be DOS as well.
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
chanduch9
Participant
Posts: 7
Joined: Tue Mar 31, 2009 8:45 pm

DS project Unix to Windows

Post by chanduch9 »

Can someone suggest -> how to convert the sequential file Line termination from Unix Style to Windows Style. (Note:we are not allowed to use unauthorised packages or softwares)

And while moving the project from Unix to Windows, are there any other issues other than
1.Unix scripts
2. '/' to '\'
3.Seq files line termination from unix style to windows style.

Your suggestions are really helpfull.

Thanks
CC
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hmmm... is a text editor considered "unauthorised packages or softwares"? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

What Craig is trying to say is that unless you dump the jobs to a dsx file and edit the dsx file there is no other "automated" way to change from UNIX to DOS line terminators.

Please note: unless you really know what you are doing, editing a dsx file is dangerous - you can corrupt a job by changing something you shouldn't have. It is, of course, not recommended or supported by IBM.

Also - is your site really sure they want to go to Windows? Most of my customers are trying to get OFF Windows for server platforms. One of the major reasons for leaving the platform is the virus scans and their interference with jobs. There is also a fair amount of the DataStage developer population that feels it is a less stable platform in general.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage on Windows actually runs on MKS Toolkit, a UNIX emulator, so it can cope with UNIX pathnames provided that the corresponding Windows folders exist.

For example, if your DataStage job refers to /tmp and your logged drive (where DataStage is installed) is D:, then /tmp will automatically refer to D:\tmp. If D:\tmp exists, it will work.

If your DataStage job refers to /usr/data/controls, then you need to create D:\usr\data\controls.

To make life even easier, Windows can cope with forward slashes, so it would be happy with D:/usr/data/controls.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

asorrell wrote:What Craig is trying to say is that unless you dump the jobs to a dsx file and edit the dsx file there is no other "automated" way to change from UNIX to DOS line terminators.
Hadn't even gotten to the "trying to say" part yet, Andy. :lol: But as you surmised was laying the groundwork for it as long as editors were not verboten. And Ray, of course, makes a good point about the slashes and what does or doesn't still work path-wise.

As to the actual record terminators one chooses to use, it is not driven strictly by the platform your server is installed on - if that was all there was to the story it wouldn't even be an option. It can read and write either on either, so it's really about whom - other than DataStage internal to your jobs - will be either supplying or consuming your files and what they 'need'. Bottom line, there may not be a burning need to change this setting.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply