BookmarkSubscribeRSS Feed
priyankachauhan
Calcite | Level 5

Feedback option in proc sql statement we use to display columns in logs. so what is use of it?There is any benefit to see columns in log files.

3 REPLIES 3
AllanBowe
Barite | Level 11

It's one of a number of tools that can be useful in debugging and tracing data lineage.  It doesn't just display columns - it also expands any VIEWS to help further with understanding the underlying execution operations.  For regular, stable, production jobs - it's probably not helpful.

 

For debugging that one job, that was written 15 years ago by somebody who has now disappeared - priceless.

 

There's a great paper on it here:  http://analytics.ncsu.edu/sesug/2012/CT-05.pdf

 

 

 

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
Reeza
Super User

Yes, it's helpful for the lazy programmer like me. 
I often use FEEDBACK to expand the * list out to a full set of variables with the appropriate alias and then manually select out the variables I want. So I use it as a code generation tool. You won't see it in PROD code because I only use it for development, but that's just a single example. 

 

 

proc sql feedback;
create table want as
select * , '1' as union_join
from sashelp.class
union
select * , '2' as union_join
from sashelp.air;
quit;
DrAbhijeetSafai
Lapis Lazuli | Level 10

Interesting!

 

This was helpful. 

 

Thank you.

 

- Dr. Abhijeet Safai

Dr. Abhijeet Safai
Certified Base and Clinical SAS Programmer
Associate Data Analyst
Actu-Real

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 5519 views
  • 7 likes
  • 4 in conversation