Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
some of my account numbers comes with seven zeroes in fornt, need to get rid of them, example below:
000000088899
0000000777111
00000003334
000000066666
should be presented as:
88899
777111
3334
66666
what would be the easiest way to remove these zeroes in the script?
Pls find attached example files.
num(evaluate([ACCOUNT NUMBER])) as [ACCOUNT NUMBER],
try
Replace([ACCOUNT NUMBER],'0000000','') as [ACCOUNT NUMBER],
Check the qvw.
Hi,
Please use this.
Data:
Load *,
REPLACE(LTRIM(REPLACE( [ACCOUNT NUMBER], '0', ' ')), ' ', '0') as [ACCOUNT NUMBER_1],
Replace([ACCOUNT NUMBER],'0000000','') as [ACCOUNT NUMBER_2];
LOAD [AS OF DATE],
VER,
[ACCOUNT NUMBER],
AMOUNT
FROM
(txt, codepage is 1252, embedded labels, delimiter is ',', msq);
Great stuff. No idea what the evaluate function does but seems like it's working ![]()