Viewing/Writing Contents of a DataSet from a OS
Moderators: chulett, rschirm, roy
Viewing/Writing Contents of a DataSet from a OS
Hi All,
If i fire a unix command,
say, "cat file.ds" (where file.ds is a dataset) , it shows junk data. I understand that contents in Data Set are in orchestrate format.
Is there a way i can view the contents of a DataSet from the DS Server Operating System (example : AIX Unix) using any command?
Is there a way i can write to a dataset from a DS Server Operating System ? I know, its quite ambitious, but couldnt resist asking this question.
Thanks,
Sidharth
If i fire a unix command,
say, "cat file.ds" (where file.ds is a dataset) , it shows junk data. I understand that contents in Data Set are in orchestrate format.
Is there a way i can view the contents of a DataSet from the DS Server Operating System (example : AIX Unix) using any command?
Is there a way i can write to a dataset from a DS Server Operating System ? I know, its quite ambitious, but couldnt resist asking this question.
Thanks,
Sidharth
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
"file.ds" is not the Data Set. It is the Data Set control file. (And it's definitely not junk!)
The data in the Data Set are in separate files in the directories identified as disk resource in your configuration file. These, too, are in DataStage internal form (binary numbers, for example), so you would interpret them also as "junk".
There are utilities for viewing the contents of Data Sets; there is a GUI available from the manager, or the orchadmin command available from the operating system.
The data in the Data Set are in separate files in the directories identified as disk resource in your configuration file. These, too, are in DataStage internal form (binary numbers, for example), so you would interpret them also as "junk".
There are utilities for viewing the contents of Data Sets; there is a GUI available from the manager, or the orchadmin command available from the operating system.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hi all,
Thank you all for the explanation. Now i have a better idea of things.But I am not still out of the woods.
I try to execute the orchadmin commands from the command prompt, but i am facing the below errors.
I tried to call these functions from the shell command too, but am not successfull.
I checked the environment varaiables(APT_ORCHHOME) in the Admiistrator module, its set.
Project > Environment Button > Parallel Area > APT_ORCHHOME > "C:\Ascential\DataStage\PXEngine"
My Environment
--------------
Data Stage Engine : 7.5x2
OS : Windows 2000 Server with SP4 with .NET 2003
Thanks for the helping hand.
Thank you all for the explanation. Now i have a better idea of things.But I am not still out of the woods.
I try to execute the orchadmin commands from the command prompt, but i am facing the below errors.
Code: Select all
C:\Ascential\DataStage\PXEngine\bin>orchadmin dump -name test.ds
The environment variable APT_ORCHHOME can not be empty.
Please assign it to the proper directory in the DataStage PX install area.
C:\Ascential\DataStage\PXEngine\bin>dsrecords
The environment variable APT_ORCHHOME can not be empty.
Please assign it to the proper directory in the DataStage PX install area.
C:\Ascential\DataStage\PXEngine\bin>osh
The environment variable APT_ORCHHOME can not be empty.
Please assign it to the proper directory in the DataStage PX install area.
Code: Select all
C:\Ascential\DataStage\PXEngine\bin>sh
$ pwd
C:/Ascential/DataStage/PXEngine/bin
$ orchadmin.exe
orchadmin.exe: not found
$ dsrecords
dsrecords: not found
$ exit
C:\Ascential\DataStage\PXEngine\bin>
Project > Environment Button > Parallel Area > APT_ORCHHOME > "C:\Ascential\DataStage\PXEngine"
My Environment
--------------
Data Stage Engine : 7.5x2
OS : Windows 2000 Server with SP4 with .NET 2003
Thanks for the helping hand.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That APT_ORCHHOME is set in the Administrator module does not necessarily mean that it's set for you, the interactive user. You must make sure that it is explicitly set. You can prove that it's set using a set command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can set environment variables using Control Panel > System. Choose the Advanced tab and, from there, the Environment command button. You may need to re-boot (Microsoft's solution to everything) for the changes to take effect.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.