command line example to Import .dsx files

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
pedro.duran.silva
Participant
Posts: 9
Joined: Mon Apr 28, 2003 4:42 am

command line example to Import .dsx files

Post by pedro.duran.silva »

Hello,

I've more than 700 distinct .dsx files in one Windows directory and I would like to know if there is any way to import them all at once into a new DataStage project.

does the dscmdimport.exe allow this operation ? all jobs in a directory ? or I must create a loop?

Thanks for the help,

Best Regards,
Pedro Duran
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You could do it manually dir -1 *dsx >files.txt

Edit files.txt and add the import command to each line.
Last edited by kduke on Tue Aug 02, 2005 8:36 pm, edited 1 time in total.
Mamu Kim
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

Kim

You have said

"Edit files.txt and add the import command to exech line"

what is "exech line" ? is it typo ?

Thanks
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

Hi Kaps,

I guess that he meant "each line"
Thanks,
Naveen
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Sorry, long day. Fixed.
Mamu Kim
Post Reply