How to get the Metadata information in derivation?

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
Sachin K.C.
Participant
Posts: 12
Joined: Thu Sep 14, 2006 5:18 am
Location: Thane
Contact:

How to get the Metadata information in derivation?

Post by Sachin K.C. »

Hi,

I want to validate the sequential file column heading & their position in the file. i.e. column heading should come in particular order.

field01='Column A'
field02='Column B'
field03='Column C'
field04='Column D'
....
...
..
How i will check the metadata in transformation processing constraint ?

Guide me and validate for same.

Thank's
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Hi,

you can acheive the same thing by using Unix script or unix funations. Call the same in the After Job subroutine of the job.

Checking the header and position of the column is quite possible with the shell script.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There is a routine on my tips page which will validate the metadata. Download it.
Mamu Kim
Post Reply