Can i define metadata of file columns at run time.
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 42
- Joined: Tue Jan 24, 2006 9:11 am
Can i define metadata of file columns at run time.
Hi All,
I don't know whether this is possible or not , but i want to define the columns metadata at run time. My exact requirement is, i have a meta data stored in one sequential file as a data , i want this metadata should applied to other sequential file (or any other) at run time i.e the structure of new file will be decided at run time.
Thanks,
Ansh
I don't know whether this is possible or not , but i want to define the columns metadata at run time. My exact requirement is, i have a meta data stored in one sequential file as a data , i want this metadata should applied to other sequential file (or any other) at run time i.e the structure of new file will be decided at run time.
Thanks,
Ansh
wed
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 42
- Joined: Tue Jan 24, 2006 9:11 am
Hi ray,
Thanks for the guidance :D .
I am thinking if I define one column with the arbitary length say 100, read all columns data into this and picks up data from the start and end length for a particular field if required. I know for many stages processing we have to define all columns seprately, but I just want a guidance that can we think on this side if at all this is possible.
Thanks,
Ansh
Thanks for the guidance :D .
![Idea :idea:](./images/smilies/icon_idea.gif)
Thanks,
Ansh
ray.wurlod wrote:Not possible out of the box. DataStage is driven by metadata. The metadata must be in place first. ...
wed
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 42
- Joined: Tue Jan 24, 2006 9:11 am
Meta data stored in sequential file.
Kumar,
Can u through some more light what is this scheme file option.
Can u through some more light what is this scheme file option.
kumar_s wrote:"i have a meta data stored in one sequential file as a data"
If this is the case you can make use of scheme file optiong to acheive a job to get metadata from the file.
wed
In sequential file, under Options you can find Schema file. You can give the path and name of the file which holds the metadata model for the stage.
A sample structure would be
If you have enabled RPC (Run time column propagation), you can edit the schema file externally and can find the impact in the job without editing it.
You can find the informations under Parallel job developers guide.
A sample structure would be
Code: Select all
record (
name:string[255];
address:nullable string[255];
value1:int32;
value2:int32
date:date)
You can find the informations under Parallel job developers guide.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Can i define metadata of file columns at run time.
Hi Anshuman
Well its possible if you are having rough idea about the source metadata. We did it using a Generic stage and Orchestrate operators. Though its a complex way of doing it. It can be done. But from I will suggest you should avoid this Metadata driven approach.
Regards
Ashwin
Well its possible if you are having rough idea about the source metadata. We did it using a Generic stage and Orchestrate operators. Though its a complex way of doing it. It can be done. But from I will suggest you should avoid this Metadata driven approach.
Regards
Ashwin
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Can i define metadata of file columns at run time.
I am sorry about that, didn't see the job type
My Apologies.
Ashwin
![Embarassed :oops:](./images/smilies/icon_redface.gif)
My Apologies.
Ashwin