Hi,
What I want is to fill the highlighted cell while merging with respective number in the cell. For example for the 1st row market_return will be 0.2487176983 and for the 1st 12 row adjusted_return will be 0.7965715684.
So, all you need is to merge with newA instead of A
proc sql;
create table newA as
select
permno,
max(adjusted_return) as adjusted_return,
max(market_return) as market_return
from A
group by permno;
quit;
https://communities.sas.com/t5/help/faqpage/faq-category-id/posting#posting
please post you haves and want into a form that others could reply to please.
So, all you need is to merge with newA instead of A
proc sql;
create table newA as
select
permno,
max(adjusted_return) as adjusted_return,
max(market_return) as market_return
from A
group by permno;
quit;
@abdulla wrote:
Hi,
What I want is to fill the highlighted cell while merging with respective number in the cell. For example for the 1st row market_return will be 0.2487176983 and for the 1st 12 row adjusted_return will be 0.7965715684.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.