Status code = -10 DSJE_JOBLOCKED

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
patonp
Premium Member
Premium Member
Posts: 110
Joined: Thu Mar 11, 2004 7:59 am
Location: Toronto, ON

Status code = -10 DSJE_JOBLOCKED

Post by patonp »

When executing a job from a script, the following message code is reported:

ERROR: Failed to lock job
Status code = -10 DSJE_JOBLOCKED

We've looked in Director, and the log doesn't register the related code having run within the last 7 days. In addition, the Cleanup Resources utility does not list the job. Any ideas?

One other separate question - I've come across a reference to Status code = 0 in the documentation, but I've never seen this in production. What does a status code of 0 represent in DataStage?

Thanks in advance for any help you can provide.

Peter
ml
Participant
Posts: 82
Joined: Wed Jun 09, 2004 1:03 pm
Location: Argentina

Post by ml »

Are you able to compile this job?

Status 0 represents RUNNING status.
patonp
Premium Member
Premium Member
Posts: 110
Joined: Thu Mar 11, 2004 7:59 am
Location: Toronto, ON

Re: Status code = -10 DSJE_JOBLOCKED

Post by patonp »

What's really strange is that in the cases where this has happened, production support usually attempts to run the job a second time without a problem. Also, the jobs in question are protected.

This has randomly happened to different jobs at the rate of about 1 per week.
patonp wrote:When executing a job from a script, the following message code is reported:

ERROR: Failed to lock job
Status code = -10 DSJE_JOBLOCKED

We've looked in Director, and the log doesn't register the related code having run within the last 7 days. In addition, the Cleanup Resources utility does not list the job. Any ideas?

One other separate question - I've come across a reference to Status code = 0 in the documentation, but I've never seen this in production. What does a status code of 0 represent in DataStage?

Thanks in advance for any help you can provide.

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

Post by ray.wurlod »

I think we need to see the script. When this occurs, is the job open in Designer, Manager or Monitor (Director)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Ananda
Participant
Posts: 29
Joined: Mon Sep 20, 2004 12:05 am

Post by Ananda »

Hi,

I am facing the same issue with the following error log:

--------------------------------------------------------------------
Status code = 0
ERROR: Failed to lock job

Status code = -10 DSJE_JOBLOCKED
Status code = 0
Error -4 getting log summary

Status code = -4 DSJE_BADVALUE
Error running job

Status code = -2 DSJE_BADSTATE
saving the logfile
End time: Mon Jul 31 09:49:42 CDT 2006
Start time: Mon Jul 31 09:49:40 CDT 2006
dsjob -run -mode NORMAL -warn 500 -wait -jobstatus -param SLX_DSN=SLXT -param
SLX_USER=SBL_RW -param SLX_PASSWORD=n0w4y07t -param SLX_SCHEMA=SYSDBA -param
HASH_DIR=/etl/test/mss/sbl/hash MSS_SBL_TEST
SBL_SMP_Attachment_SLX_Extract_Hash_Lookup
DataStage return code SBL_SMP_Attachment_SLX_Extract_Hash_Lookup: 255

-------------------------------------------------------------
I checked in Designer, Manager and Director and found that this job is not open. I am actually running this job through Tivoli Work Scheduler (a third party tool for scheduling jobs). The strange part is that I found this error log from Tivoli Work Scheduler inbuilt mail notification and the same was missing in DataStage Director.

In Director it shows successful execution of the job. Moreover when I rerun the job the second time the job runs just fine with no error logs in either TWS or Director.

Please let me know if I need to provide more details.
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

Post by vardhan354 »

This is the process to unlock the locked jobs.

Processes Locked by Another User and release or check for any issues.

For checking and clearing locked processes PC Start DataStage
Administration

Start/Ascential DataStage/DataStage Administration

Login as dsadm

Select Project and click Command

Enter: DS.TOOLS

5

4

7 (and other numbers from menu given by DSADM based on u requirement)

Enter Pid# will display. Select the pid from the ssh session list from the list_readu command. The pid is the first group in the list for the user with the problem lock.

Enter Y to clear the lock.

But need dsadm password,May be this has to be done by prod. support team.Hope this helps out.

Rgds,
VG
ETL
Ananda
Participant
Posts: 29
Joined: Mon Sep 20, 2004 12:05 am

Post by Ananda »

Hi,

I forgot to mention this in my previous mail. The job was not locked and I was able to open this in Designer too after I received the error notification mail.

regards
Anand
If you don't fail now and again, it's a sign you're playing it safe.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted - we'd need to see the script.
-craig

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