Hi,
I have two SAS table one and two.both the table having some same column and some different col.I need to append the data and create a single dataset. on top of that I need to create view on the combine table.
I am using below code but not able to do it.
data join / view=one.join_vw;
set one two;
run;
its throwing an error
ERROR: The requested type of view (Input or Output) cannot be determined.
let me know anyone have any solution for this.
further I need to access the view for different process. can I would be able to access the view as it is created on two different table.
Thanks;
I have used below code and it's working fine.
data join_one/view=join_one;
set oil.oil;
run;
data join_two/view=join_two;
set ocb.ocb;
run;
data out.join_vw/ view=out.join_vw;
set join_one join_two;
run;
data join_out;
set out.join_vw;
run;
I think you syntax is a bit off, you can only have ONE name for ONE view, here you are offering two: 'join' and 'one.join_vw'. Try to make them the same:
data one.join_vw / view=one.join_vw;
set one two;
run;
Good luck,
Haikuo
BTW, just to be clear, SAS View is a piece of SAS code, so it doesn't care how many tables involved, when you used it, it also doesn't care if it is sourced from multiple tables.
I have used below code and it's working fine.
data join_one/view=join_one;
set oil.oil;
run;
data join_two/view=join_two;
set ocb.ocb;
run;
data out.join_vw/ view=out.join_vw;
set join_one join_two;
run;
data join_out;
set out.join_vw;
run;
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.