Page 1 of 1

Datastage Parameter value change inside the transformer

Posted: Sun Jan 09, 2011 6:24 pm
by Md Dawar Mughni
Hi All,

The requirement is to split the file into multiple files based on
1.Each file should contain specific number of records or less then that
and
2.All the key columns should be in single file

Eg:
source file :

col1 col2
1 a
1 b
1 c
2 d
3 k
3 g
4 b
5 x
5 b


if number of records in each o/p file should be <= 4
then outpu files would be

file1:

col1 col2
1 a
1 b
1 c
2 d

file2:

col1 col2
3 k
3 g
4 b

file3:
col1 col2
5 x
5 b

How to impliment it in Datastage?

Appreciate the help in advance.

Warm Regards,
-Dawar

Posted: Sun Jan 09, 2011 7:54 pm
by ray.wurlod
Welcome aboard.

This particular forum is for the Transformation Extender, not for DataStage. You should have posted your question in the Enterprise Edition forum.

Posted: Mon Jan 10, 2011 4:16 am
by manoj_23sakthi
Hi,
By Using Filter,Transformer stages you can achive this

Regards,
Manoj

Posted: Mon Jan 10, 2011 4:17 am
by manoj_23sakthi
Hi,
By Using Filter,Transformer stages you can achive this

Regards,
Manoj

Posted: Mon Jan 10, 2011 4:27 am
by Md Dawar Mughni
Thnaks Ray.
This is my first post so made the mistake.

I have raise it in Enterprise Edition forum.

Please answer.

Regards
Dawar

Posted: Mon Jan 10, 2011 11:57 am
by Md Dawar Mughni
Thanks for the answer,
Could you please explain the logic.
Thnaks
-Dawar
manoj_23sakthi wrote:Hi,
By Using Filter,Transformer stages you can achive this

Regards,
Manoj