Execute dsjob command from client machine

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Execute dsjob command from client machine

Post by prasad111 »

Hi,

The server is UNIX and I am able to execute dsimport and dsexport from client machine. I wanted to list the jobs in a project using dsjob command from client machine.
I was referring to the below link
viewtopic.php?t=124608&highlight=dsjob we can execute dsjob command

I tried to execute the below command,

Code: Select all

dsjob -server <server_name> -user <user_name> -password <password> -lprojects
A error message pop-up Datastage Server Command Line Interface has encountered a problem and needs to close. We are sorry for the inconvenience.
Can I execut the dsjob command in 7.5.1A? If yes please suggest what could be the issue....

Your replies are highly appreciated

Thanks & Regards
Prasad
Last edited by prasad111 on Thu Jan 22, 2009 3:53 pm, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That syntax looks fine and *should* work just fine. Can others execute this command? What O/S and patch level is your PC?
-craig

"You can never have too many knives" -- Logan Nine Fingers
kittu.raja
Premium Member
Premium Member
Posts: 175
Joined: Tue Oct 14, 2008 1:48 pm

Post by kittu.raja »

chulett wrote:That syntax looks fine and *should* work just fine. Can others execute this command? What O/S and patch level is your PC? ...

I am able to execute the command without any problem
Rajesh Kumar
prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Post by prasad111 »

Operating system is Microsoft Windows XP profesional with Service Pack 3

Hi kittu.raja,

Have you changed anything with the PATH variables?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kittu.raja wrote:
chulett wrote:That syntax looks fine and *should* work just fine. Can others execute this command? What O/S and patch level is your PC? ...
I am able to execute the command without any problem
I didn't mean anybody anybody, but rather anyone else who works with prasad111.

And no, you shouldn't need to worry about PATH or any other variables, it should just work even with SP3 installed. First I'd suggest trying to reinstall the client software, perhaps something is corrupt on your machine.
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Post by prasad111 »

I have installed Version 7.5.1A, 8.0.1 and 8.1 in my machine. I use multi-client manager to switch between these versions.

I checked with other colleagues who has the same settings as above could not execute the dsjob command. The person who has installed only 7.5.1A can execute the dsjob command successfully.

I guess the problem happens whenever we switch between the Multi-client manager......I am not sure reinstall would resolve the problem....
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sounds to me like you need to ensure you are running the dsjob command from the version you are currently "switched to".
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Post by prasad111 »

Yes, I am executing the command after switching it to 7.5.1A
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

OK, but are you certain the 'dsjob' being executed is the one that lives inside the 7.5.1a directory structure?
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Post by prasad111 »

Yes I have executed from the right folder

Code: Select all

C:\Program Files\Ascential\DataStage7.5.1>dsjob -server <server_name> -user <user_name> -password <password> -lprojects

I am able to execute the dsexport from the same folder successfully.

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Hmmm... then it seems your fate is firmly in the hands of your support provider. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
prasad111
Premium Member
Premium Member
Posts: 173
Joined: Fri May 19, 2006 10:53 am

Post by prasad111 »

Thanks for the quick responses. I will check with the support team.
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

Prasad,
I have installed Version 7.5.1A, 8.0.1 and 8.1 in my machine. I use multi-client manager to switch between these versions.
How do you have 8.0.1 and 8.1 on the same environment? It is not possible at all !!

Why don't you uninstall 8.1 (i believe that you are working with 8.1) and see whether dsjob command of 7.5.x works fine?
Kandy
_________________
Try and Try again…You will succeed atlast!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kandyshandy wrote:How do you have 8.0.1 and 8.1 on the same environment? It is not possible at all !!
They're just talking about the client software and for multiple versions of that all you should need to do is install them to different directories. And use the MCM to switch between them.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Post by kandyshandy »

No Craig... It is not possible to have 8.0.1 and 8.1 on same client machine or on same server. This is not my message but IBM's message.
Kandy
_________________
Try and Try again…You will succeed atlast!!
Post Reply