Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have a excel sheet that contain “code” and “prevcode” column I want to Marge “prevcode” column values into the “code” column.
please find the attached snap shoot of excel sheet for clear understanding.
Thanks
It's not clear to me what you want to achieve.
I assume you want to duplicate the lines, one time with Code, one time with PrecCodes AS Code:
Table:
LOAD
Prod,
Type,
Code,
/// all other columns EXCEPT PrevCodes
...
FROM ....;
CONCATENATE (Table)
LOAD
Prod,
Type,
PurgeChar(SubField(PrevCodes,'#'),'#') as Code,
// all other columns EXCEPT Code
...
FROM ...
WHERE len(trim(PrevCodes));
It's not clear to me what you want to achieve.
I assume you want to duplicate the lines, one time with Code, one time with PrecCodes AS Code:
Table:
LOAD
Prod,
Type,
Code,
/// all other columns EXCEPT PrevCodes
...
FROM ....;
CONCATENATE (Table)
LOAD
Prod,
Type,
PurgeChar(SubField(PrevCodes,'#'),'#') as Code,
// all other columns EXCEPT Code
...
FROM ...
WHERE len(trim(PrevCodes));
Thanks, swuehl
If you got the response you were looking for, please close the thread by marking swuehl's response as correct answer
Best,
Sunny
load
type,
code
path of the excel;
concatenate
load
name,
precode as code
path of excel
then automatically it will combine as 1