Hi all, I have a sas code and it reads input file with 4crores records, takes around 66.07 cpu seconds. Is there any way to reduce run time for reading large input files? Thanks, Sirisha
... View more
I was trying to explain this. Policy Date Plan 01 20210101 B 01 20210101 A 01 20210201 C 01 20210301 C O/p expected: 01 20210101 B 01 20210201 C 01 20210301 C
... View more
I tried rank but that was giving 1.2, 2.5 , 4.5… so again causing duplicates as i have multple rows for policy with same effective date. Also i have sorted the file for descending order in date due to which taking count less than 3. I need first 3 records for policy with different date. Example below: 0120210101 B 0120210101 A 0120210201 C 0120210301 C O/p expected: 0120210101 B 0120210201 C 0120210301 C
... View more
I have a requirement to get highest 3 rows for respective policy and effective date. Key is policy and effective date. am trying using group by clause having count(*) <=3, but its avoiding rows having more than 3 in input file. Please suggest how to write query
... View more
I have current date taking from DATE() and want to conert it to MMYYYY format. How do I combine these two? I tried substr and string but thats not working as expected? ID Year Month Date (this is what I want) 001 2021 07 072021 Thanks in advance!
... View more