orchadmin dump issue

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

orchadmin dump issue

Post by ram.m »

Hi Ray,

I also have similar issue to this post with orchadmin command.when i try to run the orchadmin dump commands it not returning either any outout or error.

can you please assist me on this?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Similar doesn't work for a reply but it does as your own question, so I've split you out and linked back to the original just for grins. Note that I had to guess at your particulars (version,O/S) as you've yet start your own topic. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Show the exact syntax you used, the value of APT_ORCHHOME environment variable at the time, and any output (even error message) you received. Issue the command echo $? immedicately after orchadmin and report the output of that.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

Post by ram.m »

Hi Rey,

here is my orchadmin profile.I am not getting any error when i execute the profile and also able to see orchadmin help but when i use orchadmin dump or copy it is is not returning either output or any error.Please kindly assist

export DSHOME=$(cat /.dshome)

. $DSHOME/dsenv
export APT_CONFIG_FILE=$DSHOME/../Configurations/default.apt
APT_ORCHHOME=/dv/app/IBM/IS/server/PXEngine/; export APT_ORCHHOME
export LIBPATH=$LIBPATH:$APT_ORCHHOME/lib
export PATH=$PATH:$APT_ORCHHOME/bin
ram
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I meant that you should show us the exact syntax of your orchadmin command. Also, can you list the Data Set using the Data Set Management tool in the Designer client?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

Post by ram.m »

Yes i am able to list the data set using dataset management tool and able to view the data too.

below is command i am using

orchadmin dump -name test.ds
orchadmin dump test.ds
ram
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Do you have the Grid Enablement Toolkit installed?

If you do, try setting your APT_GRID_CONFIG when in your shell. Set it to the one for your project defaults.

Then try again.
ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

Post by ram.m »

I tried by setting APT_GRID_CONFIG with my project default in orchadmin profile but it still not getting any output with orchadmin dump command :cry:
ram
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The full syntax of orchadmin command may be found here

Records are dumped to stdout so you will need a redirection operator to catch the dumped records into a file.

It might also be worth running orchadmin check first to verify the structural integrity of the Data Set, and possibly also dsrecords to determine whether the Data Set is empty. (An empty Data Set will cause orchadmin dump to appear silent.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

Post by ram.m »

Hi Ray,

I have tried that too but it is not giving any output to output file.can you please let me know if we need to look in to in dsenv files etc..
ram
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You don't. Use dsrecords to determine whether the Data Set contains any records at all.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

Post by ram.m »

dsrecords working fine and it is displaying the record count as 3 records. I am also able to view the 3 records thru datastage designer
ram
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use the shell variable $? to report whether orchadmin dump was successful.

Code: Select all

orchadmin dump test.ds
echo $?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ram.m
Participant
Posts: 14
Joined: Tue Feb 21, 2006 1:16 am
Location: Bangalore
Contact:

Post by ram.m »

Hi Ray,

i got below output.

orchadmin dump test.ds
echo $?
1
ram
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

"which orchadmin"

Maybe someone is messing with your mind and slapped their own version in your execution path.

My guess is that it is in your GRIDHOME path.
Post Reply