HOW CAN WE SEE THE DATA IN DATASET?

Answers were Sorted based on User's Feedback



HOW CAN WE SEE THE DATA IN DATASET?..

Answer / bharathd

Thanks sekhar for Nice info...
We can also view the data set through datastage client
called designer, for this go to tools menu->clik on dataset
management->select the dataset whichnone you want to view-
>the click ok->click on show datawindow(in cube shape)-
>click ok .......

Is This Answer Correct ?    6 Yes 0 No

HOW CAN WE SEE THE DATA IN DATASET?..

Answer / subbuchamala

1--> Way through DataStage:
through datastage client - designer, for this go to
tools menu->
clik on dataset management ->
select the dataset which one you want to view ->
then click ok ->
click on show datawindow(in cube shape)->
click ok .......

2--> Way through UNIX:
1. Before using orchadmin, you should make sure that either the working directory or the $APT_ORCHHOME/etc contains the file “config.apt” OR The environment variable $APT_CONFIG_FILE should be defined for your session.


Orchadmin commands


1. CHECK: $orchadmin check

Validates the configuration file contents like , accesibility of all nodes defined in the configuration file, scratch disk definitions and accesibility of all the nodes etc. Throws an error when config file is not found or not defined properly


2. COPY : $orchadmin copy <source.ds> <destination.ds>

Makes a complete copy of the datasets of source with new destination descriptor file name. Please not that
a. You cannot use UNIX cp command as it justs copies the config file to a new name. The data is not copied.
b. The new datasets will be arranged in the form of the config file that is in use but not according to the old confing file that was in use with the source.


3. DELETE : $orchadmin < delete | del | rm > [-f | -x] descriptorfiles….

The unix rm utility cannot be used to delete the datasets. The orchadmin delete or rm command should be used to delete one or more persistent data sets.
-f options makes a force delete. If some nodes are not accesible then -f forces to delete the dataset partitions from accessible nodes and leave the other partitions in inaccesible nodes as orphans.
-x forces to use the current config file to be used while deleting than the one stored in data set.


4. DESCRIBE: $orchadmin describe [options] descriptorfile.ds

This is the single most important command.
1. Without any option lists the no.of.partitions, no.of.segments, valid segments, and preserve partitioning flag details of the persistent dataset.
-c : Print the configuration file that is written in the dataset if any
-p: Lists down the partition level information.
-f: Lists down the file level information in each partition
-e: List down the segment level information .
-s: List down the meta-data schema of the information.
-v: Lists all segemnts , valid or otherwise
-l : Long listing. Equivalent to -f -p -s -v -e


5. DUMP: $orchadmin dump [options] descriptorfile.ds

The dump command is used to dump(extract) the records from the dataset.
Without any options the dump command lists down all the records starting from first record from first partition till last record in last partition.
-delim ‘<string>’ : Uses the given string as delimtor for fields instead of space.
-field <name> : Lists only the given field instead of all fields.
-name : List all the values preceded by field name and a colon
-n numrecs : List only the given number of records per partition.
-p period(N) : Lists every Nth record from each partition starting from first record.
-skip N: Skip the first N records from each partition.
-x : Use the current system configuration file rather than the one stored in dataset.


6. TRUNCATE: $orchadmin truncate [options] descriptorfile.ds

Without options deletes all the data(ie Segments) from the dataset.
-f: Uses force truncate. Truncate accessible segments and leave the inaccesible ones.
-x: Uses current system config file rather than the default one stored in the dataset.
-n N: Leaves the first N segments in each partition and truncates the remaining.


7. HELP: $orchadmin -help OR $orchadmin <command> -help

Help manual about the usage of orchadmin or orchadmin commands.

Is This Answer Correct ?    2 Yes 0 No

HOW CAN WE SEE THE DATA IN DATASET?..

Answer / sekhar naskar

If we want to see all the data it is :
orchadmin dump <dataset_name>

If we want to see specific field data it is :
orchadmin dump -name -field <field_name> -field
<field_name> <dataset_name>

But before that the DS environment should be set.
Like below ( but may change based on the configuration):
export PATH
. /opt/IBM/InformationServer/Server/DSEngine/dsenv

LD_LIBRARY_PATH=$APT_ORCHHOME/lib:$LD_LIBRARY_PATH; export
LD_LIBRARY_PATH

Is This Answer Correct ?    1 Yes 0 No

HOW CAN WE SEE THE DATA IN DATASET?..

Answer / naresh

We can see some sample data by using dataset stage itself

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Stage Interview Questions

How to reverse the string using SQL?

0 Answers   CTS,


Hai..,in datastage how to explain project in interview?please explain any domain please.

1 Answers   Wipro,


how can we generate row values like 1 1 1 2 2 2 3 3 3 using col generator plz let me know

2 Answers  


Can you explain how could anyone drop the index before loading the data in target in datastage?

0 Answers  


What are the functionalities of link partitioner?

0 Answers  






What are the unit test cases you used in your project?

1 Answers   CSC, HY,


In aggregator stage,to find the sum of the entire group of columns,it displays in binary format. How can i solve this problem.

1 Answers   IBM,


i hav source like this . deptno,sal 1,2000 2,3000 3,4000 1,2300 4,5000 5,1100 i want target like this target1 1,2000 3,4000 4,5000 target2 2,3000 1,2300 5,1100 with out using transformer

2 Answers  


tell me 5 situations when we r using oracle db stages like orecle connector, oracle enterprise

0 Answers   IBM,


How to display all the duplicate records from the oracle Table?

3 Answers   IBM,


Is possible to create skid in dim,fact tables?

0 Answers   NTT Data,


How do you load dimension data and fact data? Which is first

2 Answers  


Categories