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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.