Job control fatal error (-4)

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

attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Job control fatal error (-4)

Post by attu »

What could be the reason of this error.

Code: Select all

RetrieveLogInformationMultipleInstance.I.JobControl (fatal error from DSGetLogEntry): Job control fatal error (-4)
(DSGetLogEntry) Event number 141 not found in RT_LOG5276
(DSGetLogEntry) Cannot find log event with id '141'
Any suggestions please?

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

Post by ArndW »

The most likely reason is that the job log is corrupted. If you don't need the information a "clear log" might fix the error.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

This can be caused if entries have been purged (manually or automatically) between the call to DSGetNewestLogId() or DSGetLogSummary() and the call to DSGetLogEntry().

That is, we're more likely talking data "corruption" here than physical corruption.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Post by attu »

I dont think the RT_LOG hashed table is corrupted, I executed count RT_log5276 and it did return records.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So verify whether Event 141 exists or does not exist. If it does not exist, verify that the control records are correct.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Post by attu »

PLease tell me how to find if event 141 exists ?

And how to verify control records are correct?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Code: Select all

SELECT * FROM RT_LOG5276 WHERE @ID = 141;
The control records are those that begin with //.

Code: Select all

LIST.ITEM RT_LOG5276 WITH @ID LIKE "//..."
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Post by attu »

>SELECT * FROM RT_LOG5276 WHERE @ID = 141;

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

Post by ArndW »

Attu - now you have proven that the DataStage error was, in fact, correct. But your file inconsistancy still exists. Clearing the log file (from the director, not from the TCL prompt) should do the trick for you.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Still haven't seen the control records from Attu, particularly //JOB.STARTED.NO.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Post by attu »

I am still confused how to execute the command to see control records.

Code: Select all

LIST.ITEM RT_LOG5276 WITH @ID LIKE // ???? 
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ray gave you the syntax.
-craig

"You can never have too many knives" -- Logan Nine Fingers
attu
Participant
Posts: 225
Joined: Sat Oct 23, 2004 8:45 pm
Location: Texas

Post by attu »

I am getting this error after executing from TCL
syntax error. Unexpected sentence without filename. Token was ""
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Where did you start TCL? If from UNIX and the $DSHOME directory, you need to enter the command "LOGTO {YourProjectName}"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hmm... the syntax doesn't seem to be valid and I get the same error running it for an RT_LOG in my project. And I ain't smart enough to know what the correct syntax should be. :?
-craig

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