Putting all messages in one log file

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Putting all messages in one log file

Post by FranklinE »

I've been looking for good ways to avoid needing to log on to Director for fatal error messages. Ray D.'s recent post about Director Lite is a step up from my current situation, but not likely to be used any time soon. Before I describe the details, I also need to point out that we do not put design components into production, executables only, so all of the nice metadata functions described in the manuals give me very little to work with. Sorry about the bad news up front. :?

Basic details, hoping I don't leave out something important: Batch scheduling is done exclusively in Control-M. CM command line executes a generic script with the project name, sequence name, etc. as input parameters. The script uses standard Unix logging functions with log files put in the usual path.

I need a reliable method of identifying every job that runs under each sequence. I could create a text parameter file that lists every job name and use that to retrieve from the logs, but that also means an extra item to deploy and to manually maintain if sequences change. I have a small app that uses this. I'm looking for something I can use that avoids that sort of solution. If you are going to suggest using invocation id, please go into some detail about it. It seems promising but I've not gained a good understanding of it yet.

Finally, I'm woefully ignorant of the inner workings and details of the DS Engine. I haven't had much opportunity to get into it. If there is a document floating around that can get me started with that, I'd rather read it first before bugging you all with this. I am also an experienced developer, so I'm not looking for any help in Unix or DataStage coding basics. Command and syntax with brief explanations will do nicely, with my gratitude.
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

dsjob -jobinfo output includes a field called "controller". This is typically the parent sequence from which the job was invoked. Therefore, when your Ctrl-M script uses dsjob to retrieve information about status, also select the controller from that result.
Last edited by ray.wurlod on Tue Nov 23, 2010 1:24 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

ray.wurlod wrote:dsjob -jobinfo output includes a field called "controller". This is typically the parent sequence from which the job was invoked. Therefore, when your Ctrl-M script uses dsjob to retrieve inf ...
Ray, I keep meaning to pay my Premium fee, but haven't done so yet. A lack of further response means I haven't yet been able to read your reply. 8)
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There wasn't much more, so I've unblocked it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

Thanks, Ray. I do intend to pay for Premium, but my Procrastinator's Guild rules keep getting in the way... :wink:
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson

Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Post Reply