Archiving DataStage PX DataSets

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
poorna_76
Charter Member
Charter Member
Posts: 190
Joined: Thu Jul 08, 2004 10:42 am

Archiving DataStage PX DataSets

Post by poorna_76 »

Hi all,

Is there a way to archive the DataSets from one UNIX directory to other UNIX directory, without corrupting the DataSets?

Thanks in Advance.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Use the orchadmin cp command from UNIX to copy datasets. By using a new APT_CONFIG file you can also change the location (and amount) of data files.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can also use the Data Set Management tool in Manager to copy the data set. Beware, though, that only the control file lives in the directory; the actual data files live in the directories identified in the configuration file as resource disk. The utilites are aware of this, and will copy the data files as well as the control file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ssbhas
Premium Member
Premium Member
Posts: 8
Joined: Thu Jul 21, 2005 11:02 pm

Post by ssbhas »

Also, when copied with "orchadmin cp" datastage uses default config file "default.apt". Make sure that the configuration in default.apt is the one you want to use.
Zhang Bo
Participant
Posts: 15
Joined: Sun Jul 15, 2007 9:22 pm

Post by Zhang Bo »

but why when i used orchadmin cp,system reply
-bash: orchadmin: command not found,
wish your reply
MaDFroG
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You need to set up your environment correctly in order to do that. The $PXHOME/bin directory must be part of your PATH environment variable, otherwise specify the full path to that program. You will also need to specify an APT_CONFIG_FILE in your environment and running $DSHOME/dsenv should set up all your libraries correctly.
poorna_76
Charter Member
Charter Member
Posts: 190
Joined: Thu Jul 08, 2004 10:42 am

Post by poorna_76 »

ArndW wrote:Use the orchadmin cp command from UNIX to copy datasets. By using a new APT_CONFIG file you can also change the location (and amount) of data files.
Thanks Arndw.
Post Reply