I am trying to return a plan file for a query in SAS...How do I take the results and through it into some type of sas object or txt file????
Hi,
Try this...Hope it helps..
proc printto log='output-file.txt' ;
run;
options fullstimer;
/*SAS Code or Passthrough code*/
proc printto;
run;
Thanks,
Shiva
This will only print the log with SAS's execution times, etc... I am trying to get the plan from the DB by using something similar to the below
proc sql;
connect to netezza as dbcon
(server=netezzaServer database=myDB authdomain=netezzaAuth);
execute(
EXPLAIN SELECT
<insert fancy sql code here>
);
quit;
Does NETEZZA have syntax for outputting the result of EXPLAIN into a dataset? For example with Oracle you can somethings format things as queries from the special null dataset called DUAL.
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.
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.