on 2022 Jul 21 1:52 PM
Hi Mates,
I am trying to load transaction data from csv file.
One of the mapping in transformation file is:
EMP_GRADE=*IF(EMP_GRADE=*STR(0) THEN *STR(NO_GRADE) ; EMP_GRADE)
Here EMP_GRADE field has 0 or empty (i.e. no value) BPC should fill with NO_GRADE.
How to achieve this as tried multiple ways. But I didn't get clue. Even tried to use javascript in conversion file.
Please suggest.
Thanks,
Kumar
Request clarification before answering.
Try this, It will check for both 0 and Blank.
EMP_GRADE=*IF(EMP_GRADE=*STR(0) THEN *STR(NO_GRADE);EMP_GRADE=*STR() THEN *STR(NO_GRADE) ; EMP_GRADE)
In some Service Pack above does not work then try below
EMP_GRADE=*IF(EMP_GRADE=*STR(0) THEN *STR(NO_GRADE);EMP_GRADE+*STR(Z)=*STR(Z) THEN *STR(NO_GRADE) ; EMP_GRADE)
Please upvote/Accept if this helps.
Regards
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome. Nikhil.
Both options worked in my system.
Thanks a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
3 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.