Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how can we generate row values like
1
1
1
2
2
2
3
3
3
using col generator
plz let me know

Answer Posted / peeyush sehgal

Take input file like 0 1 2 3 4 5 6 7 8 9
seq -> trans -> seq

in transformer, clear its partitioning and sort the data.
then in stage variable
initialize sv=1

if inputlink%3=0 then sv+1 else sv

populate sv in output column.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi everyone,I have kept a project Sales And Distribution for a pharmaceutical company.can anybody explain one complex business rule that we had in our project and how did you accomplish it using DS?

2223


What is staging variable?

1084


What are routines in datastage? Enlist various types of routines.

1100


explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?

2489


What are some different alternative commands associated with "dsjob"?

1165


options available in sequence job to run,validate?

1314


Does datastage support slowly changing dimensions ?

1103


What is merge stage?

1303


In a batch if a job fails in between and you want to restart the batch from that particular job and not from the scratch then what will you do?

1036


Where the datastage stored his repository?

1087


Define repository tables in datastage?

1151


Nls stands for what in datastage?

1188


Terminate Activity

1276


Can you explain engine tier in information server?

1132


Enlist various types of routines in datastage.

1253