I need to export a list of datastage jobs using the command dsexport. I need the DSX export excluding the dependent items. i tried with the below command
dsexport.exe /D=domain /H=hostname /U=username /P=password /Job=xyz_abc project pathname1
When /NODEPENDENTS was included to the command i get the error as failed to connect to the project.
dsexport /D=<Domain> /H=<Host> /U=<User> /P=<Password> /JOB=<job_name> /NODEPENDENTS <Project> <job_name.dsx>
Thanks for your reply kduke. I had already tried with all possible ways of ordering the /NODEPENDENTS but resulted with error as "the current user does not have the desired datastage role setup" and "failed to attach to project".
Any other solution to avoid the list of dependent items being exported.
This error occurs only when i include the /NODEPENDENTS term. Else it is working fine. So i believe the problem is only with the placement of NODEPENDENTS. It would be really helpful if anybody could post the proper command
Thanks for your help. It was version mismatch. Now able to export the job without dependencies. I need to export the parameter set and i am not able to do it. Could you please help us on this. Requirement is export sequence / job / parameters in separate dsx.
Hi,
I have a similar problem but when I use the option /NODEPENDENTS I get the follow error msg: The current user does not have the required DataStage roles set up.
What role I should set up?
If I try the same by GUI, with the same user, the export goes fine.. and there I can check/uncheck the option DEPENDENTS/NODEPENDENTS
You may have credential mapping set up so that when you run via designer you actually run as someone else.
when executed from the command line, you are running the command as your user id. You can use the -user -password to make your credential mapping lookup work.