run dsexport in command line

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
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

run dsexport in command line

Post by Pierre »

Hi all,

I explain the problem I'm facing :
I have a batch that executes the following commands :
- list all projects in a file (%DirDSBinLong%dsjob -server %DSHost% -user %DSUser% -password %DSPass% -lprojects > %ListProj%)
- read %ListProj%
- - list all jobs of the current project (%DirDSBinLong%dsjob -server %DSHost% -user %DSUser% -password %DSPass% -ljobs %%CurProj > %ListJobs%)
- - - read %ListJobs%
- - - create a dsx for each job (dsexport /H=%DSHost% /U=%DSUser% /P=%DSPass% /job=%%Job %%Proj %DirSave%\%%Proj%DateTime%\%%Job%DateTime%.dsx)
- - - concatenate the %%Job.dsx in a %%Proj.dsx
- - return to read nex %ListJobs%
- return to read next %ListProj%

The question is : is there anyway (option of dsexport ?) to run the dsexport "silently", even if an error occurs (job already opened, or else...) ?

Thanks in advance.

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

Post by chulett »

Silently in what sense... ignore any errors? What happens now when there is one? I use "dscmdexport", it creates a log file of issues and doesn't stop but I have no clue how dsexport handles problems.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Pierre
Participant
Posts: 66
Joined: Thu May 24, 2007 7:16 am
Location: Paris

Post by Pierre »

Well,

That's exactly what I needed (I should have test it before, mea culpa...).

Thanks very much, Craig.

Pierre.
Felix qui potuit rerum cognoscere causas. Virgile (Géorgiques).
Post Reply