Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hallo
Ich würde gerne Feldwerte unbennen, dazu habe ich eine Excelliste.
Es sind sehr viele Änderungen, daher kann ich diese nicht einfach in den Daten ändern, sondern sollte über das Script die Werte einlesen.
Beispiel.
Tabelle X
Wert: J01AA01 soll dann Alexander heissen.
Wert: J01AA02 soll dann Stefan heissen. usw....
In der Excel Datei sind es 268 Zeilen, diese möchte ich nicht von Hand schreiben.
Hi Chris,
You can use a so called 'Mapping load' for this.
Put this in your script:
MapCode2Name:
Mapping Load
Code
Name
From [YourSource]
;
FinalTable:
Load
*,
ApplyMap('MapCode2Name',Code,'KeineName') as NameReplaced
From [YourSource]
;
With an ApplyMap you create a table that can be used for replacing field values. By executing the ApplyMap you refer to the mapping table, then based on which field it should replace the values and if none is found, return 'KeineName'. This fill will be names NameReplaced.
Jordy
Climber