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

DB2 connector> transformer > sequential file Data will be exported into a csv format in a sequential file. This file will be send in a email using a sequence job. Problem here is, how to avoid sending a blank csv file? When I ran the job there are chances that it might return zero records but in the sequence job csv file is going blank. how can I avoid this? thanks

1509


State the difference between an operational datastage and a data warehouse?

1119


what is flow of project?

1977


How we can covert server job to a parallel job?

1118


What is the purpose of pivot stage?

1149


Name the different types of Lookups in Datastage?

1242


What is use Array size in datastage

1762


what is the use of materialized view?

1548


What is the difference between server job and parallel jobs?

1134


how do u catch bad rows from OCI stage? And what CLI stands for?

2786


Hi,can any one please mention list of dimension and fact tables for Sales and Distribution System for a Pharmacutical company.

2272


What are the difference types of stages?

1180


Define Merge?

1296


Differentiate between Join, Merge and Lookup stage?

1072


What is merge stage?

1281