shared container promotion and jobs dependant on container

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
dzdiver
Participant
Posts: 36
Joined: Tue May 25, 2004 8:55 am
Location: global

shared container promotion and jobs dependant on container

Post by dzdiver »

Hello all,
When a shared container is initialized into version control and then subsequently promoted to an environment where there are existing jobs that depend on the container, does the promotion process recompile the existing jobs or is recompilation a process that needs to be done manually, or does recompilation not need to be done at all?

rgds,
B.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If the Shared Container has been changed, then all jobs that use it need to be re-compiled. This can be achieved by identidying those jobs (Usage Analysis) and using multi-job compile; it is a manual process.
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 »

That works fine in your development project but can't be done outside of it if you are taking advantage of 'Read Only' jobs when you promote.

The promotion process does recompile all jobs being promoted, so if you find yourself in the position of changing a shared container (re)promote all of the jobs that use it so your changes will get compiled in. If you are not sure which jobs to promote, select the Shared Container and then use the Get Dependant Components option.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dzdiver
Participant
Posts: 36
Joined: Tue May 25, 2004 8:55 am
Location: global

Post by dzdiver »

thanks guys. I had one of those "Im sure I had this problem before" memories.

Not sure I trust the Usage Analysis, so I AWKed a dsx export file to determine jobs. Recompiled. Sorted.

And the read only issue in our production system can be worked around using the multiple job compile :)

A question about the "Get Dependant Components" though.
When I tried this it showed me what components the container uses, as opposed to what jobs etc use the container.
So I tried it on a job and it did similar, selecting the containers, routines etc that the job was dependant on, rather than the other way around?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

dzdiver wrote:And the read only issue in our production system can be worked around using the multiple job compile :)
Don't believe so. From what I recall, you'll go through all the motions and then every compile will fail because the jobs are read only. :?

You need to repromote them. All.
dzdiver wrote:A question about the "Get Dependant Components" though. When I tried this it showed me what components the container uses, as opposed to what jobs etc use the container. So I tried it on a job and it did similar, selecting the containers, routines etc that the job was dependant on, rather than the other way around?
Sorry, I guess that was a little bit of wishful thinking on my part. :cry: Stick with your AWK list to drive the repromotion.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dzdiver
Participant
Posts: 36
Joined: Tue May 25, 2004 8:55 am
Location: global

Post by dzdiver »

chulett wrote:
dzdiver wrote:And the read only issue in our production system can be worked around using the multiple job compile :)
Don't believe so. From what I recall, you'll go through all the motions and then every compile will fail because the jobs are read only. :?

You need to repromote them. All.
Well it compiles them fine for me even though theyre read only :D
The report says they compiled fine and I just wrote a small test and proved it to myself that its ok.

Maybe a different version of the DS doesnt allow this?
Were using 7.1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Interesting. I'm still on 7.0.1 so perhaps that's something 'they' have fixed. Sure would simplify things. :wink:
-craig

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