
Contributor
2024-04-08
06:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to create a flag for not existing dataset in keep load
Hi,
First of all, I am new to the Community, so please excuse if my question isn't appropriate in any way.
I am loading two table like this:
A:
load
main_key,
sub_key
resident xyz;
B:
left keep (A)
load sub_key
resident abc;
Now I want a flag in table A which shows if a corresponding value is existing in table B or not.
Thank you very much for your support.
410 Views
1 Solution
Accepted Solutions


MVP
2024-04-08
09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe in this way:
temp: load sub_key resident abc;
A: load main_key, sub_key, exists(sub_key) as flag resident xyz;
375 Views
2 Replies


MVP
2024-04-08
09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe in this way:
temp: load sub_key resident abc;
A: load main_key, sub_key, exists(sub_key) as flag resident xyz;
376 Views

Contributor
2024-04-09
02:17 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Seems to be exactly what I was looking for. Thanks a lot for your support
363 Views
