How to Read the dataset file outside of Datastage

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
cparru
Participant
Posts: 24
Joined: Wed Mar 07, 2007 11:22 am

How to Read the dataset file outside of Datastage

Post by cparru »

How to Read the dataset file outside of Datastage --

1. How can i read the dataset file in UNIX (.ds)

2. I would like to ftp the dataset file from UNIX box to my Desktop and read it from there. This is needed for my testing purposes. Is there a way to convert the dataset file in UNIX to the ascii format and then FTP it to windows for further usage.
devidotcom
Participant
Posts: 247
Joined: Thu Apr 27, 2006 6:38 am
Location: Hyderabad

Post by devidotcom »

As per my understanding you will not be able to do it.
You try inserting the records in a sequential file and then read the records.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

There are admin utilities from the command line to view/dump datasets. The better choice is to write jobs to dump them out in a file format you like.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

the command orchadmin dump {dataset} will write the dataset to stdout; you can redirect that to a file and ftp that to your PC. Best do what Craig has already suggested, though.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The Data Set descriptor file is not interesting - all it contains is the record schema and the locations of the actual data. Why do you want to read 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.
Post Reply