0001.jpg
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:
0001.jpg
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.
CFC_SAS_Communities_400x225.jpg
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.