| View previous topic :: View next topic |
| Author |
Message |
NASCAR9 Intermediate
Joined: 08 Oct 2004 Posts: 274 Topics: 52 Location: California
|
Posted: Fri Jan 07, 2011 1:57 pm Post subject: Load with 'CASE LIKE Statement' |
|
|
I'm looking over the Load doc and trying to find a statement that acts like a SQL CASE statment.
Now to my question.
Can I load a column(set as NOT NULL) with a value (0 or 1) based on a field somewhere else in the record? If so, how? _________________ Thanks,
NASCAR9 |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12394 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
NASCAR9 Intermediate
Joined: 08 Oct 2004 Posts: 274 Topics: 52 Location: California
|
Posted: Fri Jan 07, 2011 3:40 pm Post subject: |
|
|
Thanks kolusu,
I've looked at both of those options, not what I need.
| Code: |
My requirements are:
Use a Load job
SET COLUMN =
If position 23:3 = 000 then '01'
else '02'
|
I know the logic is not correct, but I hope my point gets across. _________________ Thanks,
NASCAR9 |
|
| Back to top |
|
 |
|
|
|