Datastage command using dsjob -ljobs does not display jobs

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Datastage command using dsjob -ljobs does not display jobs

Post 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!!!!!!
Last edited by ayadav77 on Thu Jun 01, 2017 4:41 am, edited 1 time in total.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

and did you source dsenv first?

also, start with -lprojects
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post 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
Last edited by ayadav77 on Thu Jun 01, 2017 3:34 am, edited 1 time in total.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post 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" ?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post by ayadav77 »

Yes!

dsjob -lprojects is working.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post 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
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post 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>
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Well, I asked you to check -lprojects with long syntax, does it list the projects?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post by ayadav77 »

Yes, it works.
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Have you been granted permission to that project?

Developer role, super operator role, etc...
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post by ayadav77 »

I guess i have the permission because all other options of dsjob are working only -ljobs isnot working.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Are you able to login to Designer and see the jobs?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ayadav77
Participant
Posts: 26
Joined: Wed Jun 18, 2014 11:51 am
Location: Pune

Post 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.
Last edited by ayadav77 on Fri Jun 02, 2017 9:06 am, edited 1 time in total.
Post Reply