Field Decription in 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
mrajesh99
Participant
Posts: 8
Joined: Sat Aug 01, 2009 11:37 pm

Field Decription in Schema file

Post by mrajesh99 »

hi,
i am developing a parallel job to use Runtime Collumn Propagation using Shema file. i am struck at specifying the Description for the Collumns in schema file. Could any one please help me out on this issue. Thanks in advance.
kiran259
Participant
Posts: 48
Joined: Thu Aug 16, 2007 11:17 pm
Location: United States
Contact:

Re: Field Decription in Schema file

Post by kiran259 »

mrajesh99 wrote:hi,
i am developing a parallel job to use Runtime Collumn Propagation using Shema file. i am struck at specifying the Description for the Collumns in schema file. Could any one please help me out on this issue. Thanks in advance.

How can we assume your issue?Please point out the problem.
Kiran Vaduguri

As soon as the fear approaches near, attack and destroy it.
mrajesh99
Participant
Posts: 8
Joined: Sat Aug 01, 2009 11:37 pm

Field Decription in Schema file

Post by mrajesh99 »

Hi Kiran,
thanks for reply. i am developing a job to produce some test data for our project. i am using Collumn generator with runtime collumn propagation enabled and am getting the table definition from the Orchestrate schema file. i have developed the schema file and managed to generate some test data. i want to add comments to the collumn(Description at collumn level) definition in the schema file. i had a look at the DS documentation but couldnt find any information. pls let me know of anyworkaround.
Jasti
Participant
Posts: 44
Joined: Sat Apr 14, 2007 6:34 am
Location: Hyderabad, India

Re: Field Decription in Schema file

Post by Jasti »

mrajesh99 wrote:i had a look at the DS documentation but couldnt find any information. pls let me know of anyworkaround.
Hi Rajesh,
From the documentation
You can include comments in schema definition files. A comment is
started by a double slash //, and ended by a newline.
The following examples show various different data definitions:
record (dateField1:date; ) // single date
record (dateField2[10]:date; ) // 10-element date vector
record (dateField3[]:date; ) // variable-length date vector
record (dateField4:nullable date;) // nullable date
Thanks,
Mohan.A.Jasti.
edmtenzing
Premium Member
Premium Member
Posts: 22
Joined: Wed Jul 23, 2008 5:59 pm
Contact:

Re: Field Decription in Schema file

Post by edmtenzing »

Hi Rajesh,

We have got the same problem, and just wonder if you have solved it. Basically, we want to specifiy column descriptions on a schema file for XML transformation.
For instance:

A schema file:

record (id:string[5];) // /client/text()
** This doesn't work for us. I just used it to describe the problem.

can be transfered to DataStage as:

Column Name ................ Description
id /client/text()

Any idea?
Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use /* C-style comments */ in schema files.

However, there is no mechanism for transferring these to DataStage as part of the import process. This would need to be a manual process of transcription.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
edmtenzing
Premium Member
Premium Member
Posts: 22
Joined: Wed Jul 23, 2008 5:59 pm
Contact:

Post by edmtenzing »

ray.wurlod wrote:Use /* C-style comments */ in schema files.

However, there is no mechanism for transferring these to DataStage as part of the import process. This would need to be a manual process of transcription.
Hi Ray,
Thanks for the reply.
Does that mean there is not way to pass column descriptions to DataStage from a schema at Version 8.X or 8.1?
Regards,
Max
Post Reply