omit 2 days old data from current date in Sort.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
Neeraj N
Registered Member
Posts: 54
Joined: Tue Aug 20, 2013 12:49 pm

omit 2 days old data from current date in Sort.

Post by Neeraj N »

Hi,

I need to omit records using sort card after a full unload of db2 table. Date field is character x(10). What would be the omit condition for that? Condition is omit 2 days old data from current date, how can I do that in SORT?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: omit 2 days old data from current date in Sort.

Post by nicc »

What have you tried so far? What was the result? What was the problem with the result?
Regards
Nic
Chandan Yadav
Website Team
Website Team
Posts: 70
Joined: Wed Jul 31, 2013 10:19 pm

Re: omit 2 days old data from current date in Sort.

Post by Chandan Yadav »

If you are doing a table unload , why can't you exclude the records during unload itself by tweaking the DB2 query to select only last 2 days data?
Neeraj N
Registered Member
Posts: 54
Joined: Tue Aug 20, 2013 12:49 pm

Re: omit 2 days old data from current date in Sort.

Post by Neeraj N »

Chandan Yadav wrote: Wed Oct 31, 2018 1:46 pmIf you are doing a table unload , why can't you exclude the records during unload itself by tweaking the DB2 query to select only last 2 days data?
This suggestion looks good, will try it.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”