Concatenating multiple lines into one line using loop
Posted: Fri Jul 08, 2011 12:52 am
Hi All,
Below is the scenario which we are trying to do using loop in 8.5 version. The functionality is achieved already using stage variables. We are looking for doing this in loop if possible.
Input File
PrimaryKey Data1
Pkey Data2
Pkey Data3
Pkey1 Data1
Pkey1 Data2
Pkey1 Data3
Output we want like this:
Pkey Data1PkeyData2PkeyData3
Pkey1Data1Pkey1Data2Pkey1Data3
Using the previous and current Pkey value can this be achieved through loop. We need if it is feasible or not using loop condition and variable.
Regards,
Suman
Below is the scenario which we are trying to do using loop in 8.5 version. The functionality is achieved already using stage variables. We are looking for doing this in loop if possible.
Input File
PrimaryKey Data1
Pkey Data2
Pkey Data3
Pkey1 Data1
Pkey1 Data2
Pkey1 Data3
Output we want like this:
Pkey Data1PkeyData2PkeyData3
Pkey1Data1Pkey1Data2Pkey1Data3
Using the previous and current Pkey value can this be achieved through loop. We need if it is feasible or not using loop condition and variable.
Regards,
Suman