Executing and Scheduling dsexport or dscmd on server

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

Post Reply
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Executing and Scheduling dsexport or dscmd on server

Post by har »

Hi,
I try to sehedule dsexport from command line,but its not kicking on schedule time.Here is the command i'm using to schedule.
command : C:\Program Files\Ascential\DataStage7.5.1>AT 23:00 /NEXT:M,T,W,TH,F dsexport /H=
abc.com /U=xxxx /P=xxxx datawarehouse C:\DSBACKUP\dwhouse_%date
:~4,2%%date:~7,2%%date:~10,4%.dsx

Looks i miss some thing in this command..
Apprecite further ideas on this..
Hary
Last edited by har on Tue Feb 14, 2006 10:21 am, edited 2 times in total.
Har
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What gets listed when you just type "at" without options? How does your job look in the schedule?
shawn_ramsey
Participant
Posts: 145
Joined: Fri May 02, 2003 9:59 am
Location: Seattle, Washington. USA

Re: Scheduling dsexport from command line

Post by shawn_ramsey »

Don't you have to quote the command when doing at?
Shawn Ramsey

"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

It is easier to schedule DataStageBackup.bat. You can download it from my tips page or ADN. Download Scripts.zip.
Mamu Kim
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Hary,

'AT' kicks off a bat file properly without any error.
So you can create another .bat file which just holds
dsexport /H=
abc.com /U=xxxx /P=xxxx datawarehouse C:\DSBACKUP\dwhouse_%date
:~4,2%%date:~7,2%%date:~10,4%.dsx

say DSEXP.bat

C:\Program Files\Ascential\DataStage7.5.1>AT 23:00 /NEXT:M,T,W,TH,F DSEXP.bat works :D
After crossing the scheduling time, the status of the execution can known by typing the comand 'AT'. Status may return Error if it doesnt triggered correctly.
You can also know the exact command that has been scheduled. I guess the command might be just 'dsexport' in your case:wink:

-Kumar
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Post by har »

hi,
I tried with these scenarios,but i unable to schedule the script..
Scenario:
1.C:\Program Files\Ascential\DataStage7.5.1>AT 23:00 /NEXT:M,T,W,TH,F dsexport /H=
"abc.com /U=xxxx /P=xxxx datawarehouse C:\DSBACKUP\dwhouse_%date
:~4,2%%date:~7,2%%date:~10,4%.dsx"
2.C:\Program Files\Ascential\DataStage7.5.1>AT 23:00 /NEXT:M,T,W,TH,F 'dsexport' /H=
abc.com /U=xxxx /P=xxxx datawarehouse C:\DSBACKUP\dwhouse_%date
:~4,2%%date:~7,2%%date:~10,4%.dsx

3.Icreated a Test.bat file and scheduled,still its not running.

Thanks,
hary
Har
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

ArndW wrote:What gets listed when you just type "at" without options? How does your job look in the schedule?
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Post by har »

Arnd,
can you correct my syatnx or tell me where excatly I'm doing mistake ..?
Hary
Har
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Har,

I am trying to see what your scheduler thinks it has, this is better than posting your command line. If you enter the at command without any options it will show you what is in the schedule and how it has interpreted your submissions.
manojkumarnayak
Participant
Posts: 21
Joined: Fri Nov 04, 2005 11:31 am

Post by manojkumarnayak »

try to make it interactive with desktop with "/interactive"

let me know what happens

regards
manoj
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

'AT' takes only only one paramter at a time from command line.
By giving
>AT 23:00 /NEXT:M,T,W,TH,F dsexport /H= "abc.com....
or
>AT 23:00 /NEXT:M,T,W,TH,F 'dsexport' /H= "abc.com
Should be shecdling only the dsexport command without any other paramters needed to it. That is the reason, you were repeatedly asked to let know the result of AT which will give the list of commands that have been scheduled at different time.

-Kumar
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

is it possible to run dscmd or dsexport on server..?

Post by har »

Hi guys,
I can export whole project using dscmd or dsexport from client.And i can schedule the dscmd.Same way i want to do on server...
Is it possible to run same command on server..?
I check Ascential pdf,but i didnt find any thing.
hary
Har
Post Reply