Page 1 of 1

How to supress prompts while importing DSX

Posted: Thu Mar 17, 2011 10:49 pm
by Rahul Dhamane
Hi,

We are importing DSX using DataStage import command dscmdimport.exe. While importing qualitystage match specifications, commands promts for,

Importing Data Quality Specifications
Importing TEST.MAT
'TEST' is referenced by another component.
Are you sure you want to overwrite it?(Y/YA/N/NA/A)
Y


I would like to know any options to supress above prompt in order to have successful import of Match Specs and avaoid manual intervention using dscmdimport.exe command.

Thanks in advance.

Regards,
Rahul

Posted: Thu Mar 17, 2011 11:02 pm
by ray.wurlod
I vaguely recall that there's a /Y switch that says "answer all questions with Y".

If there isn't you can use an old trick, to redirect NUL to stdin, thereby supplying an infinite supply of "Enter" presses.

Code: Select all

dscmdexport /D=domain /H=engine /U=user /P=password project filepath /V < .\NUL

Posted: Thu Mar 17, 2011 11:38 pm
by Rahul Dhamane
ray.wurlod wrote:I vaguely recall that there's a /Y switch that says "answer all questions with Y".

If there isn't you can use an old trick, to redirect NUL to stdin, thereby supplying an infinite supply of "Enter" ...
Hi Ray, I haven't tried /Y option, but, meanwhile I checked for dscmdimport.exe command options, and the option /NUA suppress this type of questions.

It worked successfully :)

Thanks for your support.

Regards,
Rahul

Posted: Fri Mar 18, 2011 3:30 pm
by ray.wurlod
Yes, that was the one.