Page 1 of 2

Datastage command using dsjob -ljobs does not display jobs

Posted: Wed May 31, 2017 1:35 pm
by ayadav77
When using dsjob -ljobs to display job in a project you receive the following output:
<none>
Status code = 0

Also tried using below format , but did not worked
dsjob -domain <>:9080 -server <>:31538 -user dsdev3 -password dsdev3 -ljobs projectname

!!!!!Quick response is really appreciated!!!!!!

Posted: Wed May 31, 2017 3:17 pm
by PaulVL
and did you source dsenv first?

also, start with -lprojects

Posted: Thu Jun 01, 2017 1:55 am
by ayadav77
In .profile file of the user through which i have logged in contain dsenv file execution.

Please give the proper syntax for 'start with -lprojects'

I tried once again,

opt/IBM/InformationServer/Server/DSEngine > . /opt/IBM/InformationServer/Server/DSEngine/dsenv
opt/IBM/InformationServer/Server/DSEngine >
@/opt/IBM/InformationServer/Server/DSEngine > dsjob -domain <>:9080 -server <>:31538 -user dsdev3 -password dsdev3 -ljobs Project
<none>

Status code = 0

Posted: Thu Jun 01, 2017 2:38 am
by priyadarshikunal
First of all, remove those sever details from your post.

All the ports and all looks like default. Did you just try running "dsjob -lprojets" ?

Posted: Thu Jun 01, 2017 3:35 am
by ayadav77
Yes!

dsjob -lprojects is working.

Posted: Thu Jun 01, 2017 4:50 am
by priyadarshikunal
Now please try

"dsjob -ljobs projectname"

and make sure you are added to requierd data stage groups.


Also try

dsjob -domain domainname:port -server servername:31538 -user youruser -password yourpassword -lprojects

Posted: Thu Jun 01, 2017 5:50 am
by ayadav77
Treid the above command and it is working fine for -lprojects, but when i do -ljobs it doesn't give any output.

Below command is not working:
dsjob -domain domainname:port -server servername:31538 -user youruser -password yourpassword -ljobs <Projectname>

Posted: Thu Jun 01, 2017 7:17 am
by priyadarshikunal
Well, I asked you to check -lprojects with long syntax, does it list the projects?

Posted: Thu Jun 01, 2017 7:20 am
by ayadav77
Yes, it works.

Posted: Thu Jun 01, 2017 7:35 am
by PaulVL
Have you been granted permission to that project?

Developer role, super operator role, etc...

Posted: Thu Jun 01, 2017 8:02 am
by ayadav77
I guess i have the permission because all other options of dsjob are working only -ljobs isnot working.

Posted: Fri Jun 02, 2017 1:15 am
by priyadarshikunal
Are you able to login to Designer and see the jobs?

Posted: Fri Jun 02, 2017 3:23 am
by ayadav77
Yes, I am able to login Designer and can see the job.

Tried all possible way but dsjob -ljobs is not working.
dsjob -domain dname:9080 -server sname:31538 -user abc -password xyz -ljobs projectname

Posted: Fri Jun 02, 2017 6:30 am
by chulett
Can we revisit what exactly "not working" means at this point? What output do you see? What is displayed if you type "echo $?" immediately after dsjob runs?

Posted: Fri Jun 02, 2017 7:06 am
by ayadav77
Hi chulett,

Please help in below issue.

When using dsjob -ljobs to display job in a project you receive the following output:
$dsjob -ljobs projectname
<none>
Status code = 0

Also tried using below format , but did not worked
dsjob -domain domainname:port -server servername:31538 -user abc -password xyz -ljobs projectname

When i entered "echo $?" just after dsjob command, it gave me 0 output.