dsjob -run
Moderators: chulett, rschirm, roy
dsjob -run
Hi,
I am trying to run my jobs in command prompt. But I am unable to do so I am getting following error.
$ dsjob -run -mode NORMAL bhidev facility_fact
ksh: dsjob: not found.
thusmiannadv21: /home/bhi
Please tell me what changes ( like PATH or LIBPATH) I have to make ?
Thanks
Kavuri
I am trying to run my jobs in command prompt. But I am unable to do so I am getting following error.
$ dsjob -run -mode NORMAL bhidev facility_fact
ksh: dsjob: not found.
thusmiannadv21: /home/bhi
Please tell me what changes ( like PATH or LIBPATH) I have to make ?
Thanks
Kavuri
-
- Participant
- Posts: 38
- Joined: Thu Jul 26, 2007 6:11 am
you need to find the path for the dsengine.
you need find the path for the dsengine and like this and /home/dsadm/Ascential/DataStage/DSEngine/bin
and run.
and run.
-RK
First 'source' your dsenv file to set the environment:
Then run your job.
Code: Select all
cd `cat /.dshome`
. ./dsenv
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Re: you need to find the path for the dsengine.
I tried as you told but I am getting following error.
$ dsjob -run -mode NORMAL bhidev facility_fact
exec(): 0509-036 Cannot load program dsjob because of the following errors:
0509-150 Dependent module libvmdsapi.so could not be loaded.
0509-022 Cannot load module libvmdsapi.so.
0509-026 System error: A file or directory in the path name does not exist.
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine/bin
Thanks
Kavuri
$ dsjob -run -mode NORMAL bhidev facility_fact
exec(): 0509-036 Cannot load program dsjob because of the following errors:
0509-150 Dependent module libvmdsapi.so could not be loaded.
0509-022 Cannot load module libvmdsapi.so.
0509-026 System error: A file or directory in the path name does not exist.
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine/bin
Thanks
Kavuri
Hi Craig,
I tried it.
$ cd `cat /.dshome`
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ . ./dsenv
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ dsjob -run -mode NORMAL bhidev facility_fact
ksh: dsjob: not found.
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$
Previously somewhere I studied some .so file need to be executed or something. can you tell me how can I run my jobs properly?
Thanks
Kavuri
I tried it.
$ cd `cat /.dshome`
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ . ./dsenv
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ dsjob -run -mode NORMAL bhidev facility_fact
ksh: dsjob: not found.
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$
Previously somewhere I studied some .so file need to be executed or something. can you tell me how can I run my jobs properly?
Thanks
Kavuri
That's all it should take as everything should be set in your dsenv file.
Try this - after doing the previous steps, try running your job like this:
And let us know what happens.
![Confused :?](./images/smilies/icon_confused.gif)
Try this - after doing the previous steps, try running your job like this:
Code: Select all
$DSHOME/bin/dsjob -run -mode NORMAL bhidev facility_fact
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Hi Craig,
I tried but in vain.
I am getting error. May be something needed to modified in dsenv file. Can you figure out what should be modified.
$ cd `cat/.dshome`
ksh: cat/.dshome: not found.
thusmiannadv21: /home/bhi
$ cd `cat /.dshome`
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ . ./dsenv
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ DSHOME/bin/dsjob -run -mode NORMAL bhidev facility_fact
ksh: DSHOME/bin/dsjob: not found.
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$
Thanks
Kavuri
I tried but in vain.
I am getting error. May be something needed to modified in dsenv file. Can you figure out what should be modified.
$ cd `cat/.dshome`
ksh: cat/.dshome: not found.
thusmiannadv21: /home/bhi
$ cd `cat /.dshome`
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ . ./dsenv
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$ DSHOME/bin/dsjob -run -mode NORMAL bhidev facility_fact
ksh: DSHOME/bin/dsjob: not found.
thusmiannadv21: /medstat/advantage/common/Ascential/DataStage/DSEngine
$
Thanks
Kavuri
Well, at least now it's trying to run the job. What 'state' is it in now? The error tells you the job is not runnable - that can mean it is not compiled or is aborted and needs to be reset first or it may already be running.
You need to figure that one out.
You need to figure that one out.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Yes, thanks Craig, Now its working fine, I had changed in my C++ routine which I compiled, but I havent compiled job since then. So I am getting this error.
Can you tell me how you have identified error for the STATE code? Is there any manual shows for this error this is the reason?
One more thing, I think process is running in the background, without saying when the job will complete? Is there any way to find that? And where can I retrieve log file in which directory?
I dont want to look at Director for log. I want to see it in command prompt.
I appreciate your help and advices.
Thanks
Kavuri
Can you tell me how you have identified error for the STATE code? Is there any manual shows for this error this is the reason?
One more thing, I think process is running in the background, without saying when the job will complete? Is there any way to find that? And where can I retrieve log file in which directory?
I dont want to look at Director for log. I want to see it in command prompt.
I appreciate your help and advices.
Thanks
Kavuri
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The error codes have been posted here in the past and can be found in the $DSHOME/include/dsapi.h file, from what I recall. Mostly, it's just something you learn, either first hand or from reading posts here.kavuri wrote:Can you tell me how you have identified error for the STATE code? Is there any manual shows for this error this is the reason?
Yes, without one of the "wait" options, it will spool the job off as a normal background process and immediately return to the command line. You can read about "-wait" and "-jobstatus" options here or in yor pdf docs, they would cause the command to wait for the job to finish before returning to the command line. The difference is in the nature of the codes returned.kavuri also wrote:One more thing, I think process is running in the background, without saying when the job will complete? Is there any way to find that? And where can I retrieve log file in which directory? I dont want to look at Director for log. I want to see it in command prompt.
You can't read the logs easily except from the Director. You can, however, check the job's status using dsjob with (oddly enough) the -jobstatus option from the command line.
All this and more in the Command Line Interface section of the Server Job Developer's Guide pdf.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers