Schema file

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
medakiran
Participant
Posts: 19
Joined: Thu May 12, 2005 10:08 pm

Schema file

Post by medakiran »

Hi,

Can anyone, please tell how can i generate a Schema file?
I have a requirement where, there are like 19 sequential stages in a job, using the same meta data, so i know tht instead of specifying the column definitions for each and every stage i can use a Schema file instead, but, i just dont know how to generate that.
So, someone do kindly help me.

Thanks,
kiran
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
You can search here and the docs to find relevant info regarding schema files.

As for your 19 stages there are several options.
Then most simple and trivial would be building your first stage and output link.
After that simply use copy & paste to get the remaining 18 and you only need to change the file name to move on.

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
trobinson
Participant
Posts: 208
Joined: Thu Apr 11, 2002 6:02 am
Location: Saint Louis
Contact:

Post by trobinson »

The problem with manually copy and pasting is maintenance when a new field is added. It is MUCH easier to generate the schema file once and maintain that for all 19. I'll assume Ascential's intent was to use table definitions to generate schema files. It can be done this way but the generated schema file is not very good. It still needs to be manually tweaked in order to work correctly and once generated it doesn't update very well. It would be nice to maintain a table definition that represents the schema file and only maintain that, generating a new schema file from the table def as needed but the functionality is too squirrelly.
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

And what do you intend to do with the added column/s? auto propegate it?
What if only one or several of them are changed and allothers remain the same?
I'm not certain that is a better solution, but I guess all solutions have upps and downs pros and cons.

If the shema is the same what about the entire process of data?
If it is also the same how about making a multipe instance job? (assuming changes apply to all files might work)
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
Brethart
Participant
Posts: 5
Joined: Sat May 01, 2004 8:16 pm

Post by Brethart »

I remember seeing schema in the generated osh script in the job design. You can try include one seq stage with proper meta data and then view generated osh (all in DS Designer - if you dont hv such option, then it has to be enabled from DS admin), copy the schema defined and paste into a new file. I hvn't done this yet, but this should work.
roy wrote:And what do you intend to do with the added column/s? auto propegate it?
What if only one or several of them are changed and allothers remain the same?
I'm not certain that is a better solution, but I guess all solutions have upps and downs pros and cons.

If the shema is the same what about the entire process of data?
If it is also the same how about making a multipe instance job? (assuming changes apply to all files might work)
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Or you can build one and a dummy dataset and use the dataset management tool to view the file's schema.
But this is info you can find in a simple search here :!:
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Open the table definition in Manager.
Select the Layout tab.
Choose the Parallel option.
Copy the schema, paste into any text editor.
Save schema file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
medakiran
Participant
Posts: 19
Joined: Thu May 12, 2005 10:08 pm

Post by medakiran »

ray.wurlod wrote:Open the table definition in Manager.
Select the Layout tab.
Choose the Parallel option.
Copy the schema, paste into any text editor.
Save schema file.
Thanks a lot ray, i got that.
kiran
Post Reply