Running datastage job through Unix shell script

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

sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Running datastage job through Unix shell script

Post by sourabhverma »

Hi All,

I am trying to trigger the datastage jobs through unix shell script & untill yesterday all the jobs were running fine but today when i tried to execute the same job through same shell script i am getting error.

This is the error messge i am receiving after executing the script:

Status code = -99 DSJE_REPERROR
The job sqRunMainFlow is completed with status : 255


Any help is appreciated.
Thanks,
Sourabh Verma
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you look at your director log for job "sqRunMainFlow" what does it show? What have you changed since yesterday? Also, what is the dsjob -run command you are using?
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

I would like to make one more point here that when i try to run the same job through datastage client, it is working properly.
Thanks,
Sourabh Verma
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

Hi ArndW,

Thanks for the reply.

In the morning when i reset the job this is what the log is saying:

From previous run
DataStage Job 95 Phantom 8630
DataStage Phantom Finished.

Also, This is the command i am using for running the job:
${DSHOME}/bin/dsjob -run -wait -jobstatus -param pEmailLst=${EmailLst} -param pCountryCode=${Cntry} ${DS_PROJ_ODS} sqRunMainFlow
Thanks,
Sourabh Verma
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Arnd asked you to tell us what is in the job log when you run the job from the dsjob command. You have not yet done so.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
gssr
Participant
Posts: 243
Joined: Fri Jan 09, 2009 12:51 am
Location: India

Post by gssr »

sourabhverma wrote:I would like to make one more point here that when i try to run the same job through datastage client, it is working properly.
As you can run the job from the Client, the Problem should be in your Unix Shell Script that you used to call the DS Job.
Check the error message in your Script!!!
RAJ
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

I have not made any changes in the script as well as in the datastage job. when i run the job thru script, nothing is available in the director because the script not at all triggeres the job.

These are the logs of the yesterday`s completed run :

sqRunMainFlow..JobControl (@Coordinator): Summary of sequence run
06:03:03: Sequence started
06:03:03: sqTopLevelBatch (JOB sqTopLevelBatch) started
06:36:55: sqTopLevelBatch (JOB sqTopLevelBatch) finished, status=2 [Finished with warnings]
06:36:55: sqRunInvoicingSeq (JOB sqRunInvoicingSeq) started
06:36:56: ExecRunServiusageSH (COMMAND sh) started
16:18:19: ExecRunServiusageSH finished, reply=0
16:18:19: sqRunInvoicingSeq (JOB sqRunInvoicingSeq) finished, status=1 [Finished OK]
16:18:19: Sequence finished OK
Thanks,
Sourabh Verma
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then please prove to us that the shell variables all have values assigned.
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 »

06:36:56: ExecRunServiusageSH (COMMAND sh) started
16:18:19: ExecRunServiusageSH finished, reply=0
What does this long-running shell script do? Could it return an error?
Last edited by ArndW on Tue Feb 09, 2010 10:45 am, edited 1 time in total.
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

Hi Ray,

I did not make any change into the script & DS job, yesterday it ran fine. I tried to check the variables also but they are pretty much fine, i mean all the variables are acepting values properly but script gives the error while trying to trigger the datastage sequencer job.
Thanks,
Sourabh Verma
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

Hi ArndW,

yesterday the job was completed without any issue but today after facing the problem when i resetted the job then only i got these phantom logs.
Thanks,
Sourabh Verma
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Try running dsjob command from command line and check whether it triggers job
You are the creator of your destiny - Swami Vivekananda
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Try running dsjob command from command line and check whether it triggers job
You are the creator of your destiny - Swami Vivekananda
sourabhverma
Participant
Posts: 74
Joined: Thu Jan 05, 2006 2:07 am

Post by sourabhverma »

The long-running shell script inturn calls other datastage jobs lying in other DS project and always returns zero.
Thanks,
Sourabh Verma
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

sourabhverma wrote:The long-running shell script inturn calls other datastage jobs lying in other DS project and always returns zero.
Are you able to run job sqRunMainFlow from command line using dsjob?
You are the creator of your destiny - Swami Vivekananda
Post Reply