Want to export a job using command line argument
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 18
- Joined: Wed Dec 09, 2009 2:16 am
Want to export a job using command line argument
Hi Team,
One of my requirement is to export a job using the command line argument in the unix environment. Is there any way by which I can take a export from the unix environment?
I have already tried it in the DSEngine bin folder(/IIS/IBM/Application Server/../../DSEngine/bin) where i could able to see the dsjob command. This command can be used to take import but you cant export the job.Is there any command that is available in the datastage so that i can take the export of the job in the XML format.
Please help me in resolving the issue...Thanks in advance....
Naveen Kumar
One of my requirement is to export a job using the command line argument in the unix environment. Is there any way by which I can take a export from the unix environment?
I have already tried it in the DSEngine bin folder(/IIS/IBM/Application Server/../../DSEngine/bin) where i could able to see the dsjob command. This command can be used to take import but you cant export the job.Is there any command that is available in the datastage so that i can take the export of the job in the XML format.
Please help me in resolving the issue...Thanks in advance....
Naveen Kumar
-
- Participant
- Posts: 1
- Joined: Mon Apr 12, 2010 7:33 pm
Re: Want to export a job using command line argument
You can use 'istool' command I believe.
/opt/IBM/InformationServer/Clients/istools/cli/istools export -domain <your IP address> -username <user> -password <password> -archive <yourfilename>.isx -datastage ' -base=<projectname>/<servername> "path/to/job/yourjob.pjb" -includeexecutable'
I have only tried in the Windows client, but it should work in UNIX also.
Refer to help for more, and path/to/job is the folder strucutre within datastage.
/opt/IBM/InformationServer/Clients/istools/cli/istools export -domain <your IP address> -username <user> -password <password> -archive <yourfilename>.isx -datastage ' -base=<projectname>/<servername> "path/to/job/yourjob.pjb" -includeexecutable'
I have only tried in the Windows client, but it should work in UNIX also.
Refer to help for more, and path/to/job is the folder strucutre within datastage.
TGIF
x.sano
x.sano
-
- Participant
- Posts: 18
- Joined: Wed Dec 09, 2009 2:16 am
Replies to the Fellow Mates
Many Thanks for the Reply
@Chulet
I am in need of this export because i am developing a tool which is in need of the XML file format ,if i take the job as xml file format it gives me all the information about the jobs ..i am using these tags in the java program using DOM parser and identifying whether a particular job has got default values given in the job level and i am also checking for the naming convention..does it adhere to the rules of the naming convention that is being followed..hope i have anwered to your question
@hidenorisano33
I will try the istools and check whether it is working or not ..in case i could not able to i wll let u know
Thanks in advance
@Chulet
I am in need of this export because i am developing a tool which is in need of the XML file format ,if i take the job as xml file format it gives me all the information about the jobs ..i am using these tags in the java program using DOM parser and identifying whether a particular job has got default values given in the job level and i am also checking for the naming convention..does it adhere to the rules of the naming convention that is being followed..hope i have anwered to your question
@hidenorisano33
I will try the istools and check whether it is working or not ..in case i could not able to i wll let u know
Thanks in advance
istool outputs in dsx format and compresses the data.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
I wasn't aware of a relationship between compressed dsx = isx either but it makes sense considerin gthe file sizes produced.
Currently use this method to take server side backups in our Prod and Dev environments and have tested restoration successfully. All in all a pretty good method and removes reliance on a client session.
Currently use this method to take server side backups in our Prod and Dev environments and have tested restoration successfully. All in all a pretty good method and removes reliance on a client session.
Rename the .isx file to .zip and standard uncompression programs will expand it.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 18
- Joined: Wed Dec 09, 2009 2:16 am
@asingh Did you suggest to rename the .isx file after generation or put the .zip extension in the command itself.
I can export the jobs using istool command with .isx or .dsx format.but not been able to import those by designer.It said that the file is of unsupported type & can't be imported.
I can export the jobs using istool command with .isx or .dsx format.but not been able to import those by designer.It said that the file is of unsupported type & can't be imported.
Probal
You cannot export jobs 'in dsx format' using istool, I would guess that means you are specifying that as the extension rather than .isx and thinking the format is changing to match?
You are correct, however - you must use istool for the import of these files as well, the client tools only support the dsx and xml formats.
You are correct, however - you must use istool for the import of these files as well, the client tools only support the dsx and xml formats.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore