Page 1 of 1

command line example to Import .dsx files

Posted: Mon Aug 01, 2005 11:11 am
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,

Posted: Mon Aug 01, 2005 12:40 pm
by kduke
You could do it manually dir -1 *dsx >files.txt

Edit files.txt and add the import command to each line.

Posted: Tue Aug 02, 2005 4:16 pm
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

Posted: Tue Aug 02, 2005 4:27 pm
by pnchowdary
Hi Kaps,

I guess that he meant "each line"

Posted: Tue Aug 02, 2005 8:37 pm
by kduke
Sorry, long day. Fixed.