Creating a dummy dataset using orchadmin

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
nelab28
Premium Member
Premium Member
Posts: 28
Joined: Fri Sep 24, 2004 1:25 am

Creating a dummy dataset using orchadmin

Post by nelab28 »

Hi,

We are close to moving to production, and realised that the jobs using routines to remove existing dataset uses the "orchadmin rm < file name > fails as there is no file <file name>.. The routine contains DSLogFatal, if the rm is unsuccessful.

so, as alternative,

1) Is there a way to create a dummy dataset using orchadmin

2) Is there a command to specify to remove a file name using orchadmin, only if the file exists ?.

The solution of having a job create the dummy dataset initially, is ruled out as it is only the first time the jobs run this error occurs. Later on it doesn't have a problem on this front.

Thanks in advance.. :)
Cheers.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
The most easy solution you can implement will probably be to run a manual first time load without removing the files.

If your using specific file name when you issue the orchadmin rm command you might be able to build an empty DataSet and use orchadmin to copy it in a new name of your choice.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Explicitly handle the error in a job sequence. If you explicitly handle the error, then the automatic handling does not kick in.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nelab28
Premium Member
Premium Member
Posts: 28
Joined: Fri Sep 24, 2004 1:25 am

Post by nelab28 »

Thanks guys,

We actually went ahead in altering the routine, to test for existance of a file before deleting.

But, now facing a problem in importing the altered routine from dev as the existing routine in Production has been created as a read-only routine.

It prompted me to send another SOS..

Cheers.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Was it created as a read-only routine by Version Control? If so, you can happily overwrite it with Version Control.

Otherwise, do a search here for READONLY (the name of the column in the repository table DS_ROUTINES that you will need to update in the production environment).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply