Hello,
I'm having an issue with this code:
%IF &SAVE_OUTPUT. = Y %THEN %DO;PROC SQL _METHOD UNDO_POLICY=NONE;CREATE VIEW &TABLES_SAVE_PATH_LIBNAME..PnC_Quote_Central ASSELECT MAT.*,MAIN.*FROM &TABLES_SAVE_PATH_LIBNAME..SUBMISSION_MATURITY_TABLE (WHERE=(MATURITY_GROUP='Ultimate')) MATLEFT JOIN &TABLES_SAVE_PATH_LIBNAME..SUBMISSION_MAIN_TABLE MAINON MAT.AGREEMENT_NUMBER=MAIN.AGREEMENT_NUMBERUSING LIBNAME &TABLES_SAVE_PATH_LIBNAME. "&TABLES_SAVE_PATH.";QUIT;%END;
@samlac wrote:
Thank you for the quick reply. By curiosity, would there be a way to do it with a Dataset? By your answer, I understand that the limitation comes from SQL.
No. The physical location of a dataset is determined through the library assignment, no matter where in SAS you use them.
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.