datastage

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
karthegx
Participant
Posts: 27
Joined: Wed Sep 06, 2006 1:48 am

datastage

Post by karthegx »

hi all,

i have one problem in datastage i.e i have one source table (sequential file) it should be loaded into more than 100 target tables. the source contains table name in the sequential file based on that the data should be loaded into the particular target table.
kartheek
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

Very interesting!!!

Do all the tables have same metadata or different type of metadata?
Regards,
S. Kirtikumar.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

you can achhieve it in many ways.but befoer that please give mpre details on your requirement.like metadata of source and target etc..
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If understand properly, does your source file has both data as well as the name of the target table to which it has to be loaded?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
karthegx
Participant
Posts: 27
Joined: Wed Sep 06, 2006 1:48 am

Post by karthegx »

Hi,

the source file contains the tablename and all the target tables have the same metadata.
the source has these columns,
tablename
cedevalue
desc1
recordstatuscode

but the target tables has these data,
codevalue
desc1
rowupdateuser
rowupdatedate, so please help me for this issue
kartheek
asoka_dwh
Participant
Posts: 11
Joined: Mon Oct 24, 2005 11:37 pm
Contact:

solution

Post by asoka_dwh »

u can use datastage macros to get the startdate&time





sorce--- Transformer- ---- TGT1 |

TGT100

in the transformer

source -------------- Target
DSLINK1 ------- DSLINK2

tablename |||| DSLINK1.cedevalue codevalue
cedevalue ||||| DSLINK1.desc1 desc1
desc1 |||| yourname rowupdateuser
recordstatuscode |||| DSJobStartDate rowupdatedate


Try this,uan hotcode the name value or parameterize it.
Post Reply