Import routine from dsx file

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

maschiliro
Participant
Posts: 4
Joined: Fri Mar 20, 2009 4:28 pm

Import routine from dsx file

Post by maschiliro »

Hi, who can help me on a problem I never had on previous release of data stage?
I've developed 3 routines and I saved them in a new folder PRJ inside Routines category. I Exported them in a dsx file (I tried with all options: source, object, both...). When I try to import them from this dsx file to a differente Repository I have a message like:
3 objects ignored.... :?

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

Post by Sainath.Srinivasan »

Read only ?
maschiliro
Participant
Posts: 4
Joined: Fri Mar 20, 2009 4:28 pm

Post by maschiliro »

Sainath.Srinivasan wrote:Read only ?
I have tried the export with flag on and off but the result is not changed.
Thanks for the collaboration.
Maschilir
mfavero
Premium Member
Premium Member
Posts: 45
Joined: Thu Jan 16, 2003 1:20 pm
Location: Minneapolis

Post by mfavero »

Are the routines marked read-only in the project you export from?

Do they already exist in the project you are importing to and are they read-only there?

inspect the dsx file and search for ROUTINE - are there other routines in the dsx besides the 3 you want?
Michael Favero

2852 Humboldt Ave So
Minneapolis, MN 55408
maschiliro
Participant
Posts: 4
Joined: Fri Mar 20, 2009 4:28 pm

Post by maschiliro »

mfavero wrote:Are the routines marked read-only in the project you export from?

How I can know if a routine is marked read-only?


Do they already exist in the project you are importing to and are they read-only there?

No. They not exist in in the project I am importing to.


inspect the dsx file and search for ROUTINE - are there other routines in the dsx besides the 3 you want?

No. There are only these 3 routines.


Thanks for the collaboration.
Maschilir
mfavero
Premium Member
Premium Member
Posts: 45
Joined: Thu Jan 16, 2003 1:20 pm
Location: Minneapolis

Post by mfavero »

You can see if a routine is read-only by double clicking on it in designer and at the top of the window it will show (Read-Only)

Also all the buttons are grey except Close and Help, so you cannot save or compile it.

If your routines are not read-only then it must be something in the new projects -maybe you are not set up as a developer in the Suite admin or the directory/file permissions for the project are goofy.

Have the dsadm try the import.
Michael Favero

2852 Humboldt Ave So
Minneapolis, MN 55408
mfavero
Premium Member
Premium Member
Posts: 45
Joined: Thu Jan 16, 2003 1:20 pm
Location: Minneapolis

Post by mfavero »

You can see if a routine is read-only by double clicking on it in designer and at the top of the window it will show (Read-Only)

Also all the buttons are grey except Close and Help, so you cannot save or compile it.

If your routines are not read-only then it must be something in the new projects -maybe you are not set up as a developer in the Suite admin or the directory/file permissions for the project are goofy.

Have the dsadm try the import.
Michael Favero

2852 Humboldt Ave So
Minneapolis, MN 55408
maschiliro
Participant
Posts: 4
Joined: Fri Mar 20, 2009 4:28 pm

Post by maschiliro »

mfavero wrote:You can see if a routine is read-only by double clicking on it in designer and at the top of the window it will show (Read-Only)

Also all the buttons are grey except Close and Help, so you cannot save or compile it.

If your routines are not read-only then it must be something in the new projects -maybe you are not set up as a developer in the Suite admin or the directory/file permissions for the project are goofy.

Have the dsadm try the import.
My routines are not read only (I can save and compile them).
I am dsadm when I try to import them.
I'll Check directory/file permissions ...

Any other suggestion?

Thanks
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Are you trying to load into a "protected" project?
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I've seen the same behaviour on a 7.5.1A server where it would sometimes just refuse to import routines if that was all that was in the export file. I don't remember if there was a resolution or not, I think what I ended up having to do was include at least one job in the mix. It definitely smelled of bug to me. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

In that case, you can append a job to the export and do a "import selected".
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can try that, but I think I had to actually import everything, job and all, to get the routines to come along for the ride. It's been awhile, so who knows. Let us know, if anything, works for you.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pandujoy
Participant
Posts: 70
Joined: Tue May 13, 2008 1:37 pm

Post by pandujoy »

i guess the dsx file is read only...

open the dsx file in a notepad and look for ReadOnly = '1'..if u see this replace it with Readonly'0'....n u will be good to go... :)
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Guess again.
-craig

"You can never have too many knives" -- Logan Nine Fingers
campbellj2
Participant
Posts: 8
Joined: Fri May 16, 2008 12:13 pm

Importing Routines Datastage 8.1

Post by campbellj2 »

chulett wrote:Guess again.
I am having the same problem with Datastage 8.1 on Windows 2003. No routines will import in either DSX or XML format. IBM states that this is a known bug listed as APAR JR31756. The link with the details are under http://www-01.ibm.com/support/docview.w ... wg1JR31756
The notes say that there is a patch listed for this problem as patch # JR31326 which I cannot find in FixCentral. I am still waiting for a response from IBM.
Post Reply