Hi, I am using SAS to access DB2 tables. I have a very complex join of large number of tables which is taking ages to complete running (batch).
I would like to add a date criteria to the query. Will this work - in SQL query -> where date_field > date()-60. Don't I need to convert the value returned by SAS function date() and minus 60 into a DB2 date format? I really am not sure how to do that. Din't find any relevant information on net.
Also to test the change I would like to apply FETCH FIRST 100 ROWS ONLY clause. But SAS doesnot recognise it. It is throwing a syntax error.
Can any mate out there please help. Cheers!!!
I would like to add a date criteria to the query. Will this work - in SQL query -> where date_field > date()-60. Don't I need to convert the value returned by SAS function date() and minus 60 into a DB2 date format? I really am not sure how to do that. Din't find any relevant information on net.
Also to test the change I would like to apply FETCH FIRST 100 ROWS ONLY clause. But SAS doesnot recognise it. It is throwing a syntax error.
Can any mate out there please help. Cheers!!!