SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
Paul_de_Barros
Obsidian | Level 7

I have a large PROC SQL step.  It has a SELECT statement that includes several CASE expressions, each of which obviously ends with END AS <variable name>.  When I use the Format Code command (from the Edit menu), the AS gets pushed to the following line, and the indentation gets all messed up with all of the following column names.  Is there any way to use the Format Code command without this undesired behavior?

 

Thank you.

3 REPLIES 3
ballardw
Super User

@Paul_de_Barros wrote:

I have a large PROC SQL step.  It has a SELECT statement that includes several CASE expressions, each of which obviously ends with END AS <variable name>.  When I use the Format Code command (from the Edit menu), the AS gets pushed to the following line, and the indentation gets all messed up with all of the following column names.  Is there any way to use the Format Code command without this undesired behavior?

 

Thank you.


 

Likely not without using another tool to format a code text file.

 

I've never run into any automatic code formatting program that did exactly what I wanted and I'm not about to try to write one.

 

 

 

 

 

SASKiwi
PROC Star

What version of EG is causing this? If it is not the latest version (8.3 Update 1) you could try upgrading to see if there is any improvement. Alternatively, raise a Tech Support track and ask them if there have been any improvements.

Paul_de_Barros
Obsidian | Level 7

I'm using version 7.15.  I'll look into upgrading.  Thanks for the suggestion.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1051 views
  • 0 likes
  • 3 in conversation