Job Control routine

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Job Control routine

Post by mydsworld »

When I use Job control routine in a Parallel job (coded in DS Basic) does it utilize the underlying parallelism.

Thanks.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No, the Job Control is only executed one time before the body of the job is run, so there is no need for any parallelism.
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Post by mydsworld »

Suppose I have a scenario where there is nothing (no stages) in the canvas and I am using only DS Basic codes in Job Control to do a specific work.

In that case, will there be any parallelism.

Thanks
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Post by mydsworld »

Suppose I have a scenario where there is nothing (no stages) in the canvas and I am using only DS Basic codes in Job Control to do a specific work.

In that case, will there be any parallelism.

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

No, the Job Control is only executed 1 time regardless of the APT_CONFIG number of concurrent nodes. Also, you need a "body" in PX jobs (although a dummy row generator to a copy stage is sufficient)
BugFree
Participant
Posts: 82
Joined: Wed Dec 13, 2006 6:02 am

Post by BugFree »

You can have a job with just the job control code and no stages at all. You can actually run a job with SLEEP 10 in the job control and no stages on the canvas. It will wait for 10 seconds and finish successfully.
Ping me if I am wrong...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

And it will still not run in parallel.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

BugFree wrote:You can have a job with just the job control code...
No, you cannot have a PX job with just a sleep and compile it.
BugFree
Participant
Posts: 82
Joined: Wed Dec 13, 2006 6:02 am

Post by BugFree »

ArndW wrote:
BugFree wrote:You can have a job with just the job control code...
No, you cannot have a PX job with just a sleep and compile it. ...
ArndW i have tried it. It works. But a warning message will be logged "main_program: Step has no operators". I have tried it. I am using 7.5.1A on HPUX.
Ping me if I am wrong...
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I tried it as well yesterday and get a compile error at Version 8.
BugFree
Participant
Posts: 82
Joined: Wed Dec 13, 2006 6:02 am

Post by BugFree »

It worked for me. Thats the reason i posted the version. The difference of 0.5 between DataStage 7.5 and 8.0 is making all the difference i guess. 8)
Ping me if I am wrong...
Post Reply