BookmarkSubscribeRSS Feed
baharvey7817_1
Calcite | Level 5

It seems that the latest version of base SAS has changed the way source program statements  are numbered on the SAS log.

 

Here's a sample of how SAS displayed numbers on the SASLOG file:


12 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR STYLE=HtmlBlue
12 ! STYLESHEET=(URL="file:///F:/Program%20Files/SASHome/x86/SASEnterpriseGuide/5.1/Styles/HtmlBlue.css") NOGTITLE NOGFOOTNOTE
12 ! GPATH=&sasworklocation ENCODING=UTF8 options(rolap="on");

 

Now, it looks like this:

 

15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16 STYLE=HtmlBlue
17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
18 NOGTITLE
19 NOGFOOTNOTE
20 GPATH=&sasworklocation
21 ENCODING=UTF8
22 options(rolap="on")
23 ;

 

So, it seems that long program source statements have different line numbers instead of a single line number (with an ! indicating it's a single statement.  The problem with this behavioral change is that it is causing a program we use to fail.  Is there a way to specify in an OPTIONS statement to restore the old behavior?  Also, can user-specified OPTIONS statements take effect BEFORE the SAS/EG or SAS Web Studio options?

4 REPLIES 4
Tom
Super User Tom
Super User

Are you sure someone didn't line wrap your program?

I just tried submitting a long line use SAS/Studio 3.71 and SAS 9.4M5 and it behaved normally.

 73         options mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint
 73       ! mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint mprint
 73       ! mprint
 74         ;
baharvey7817_1
Calcite | Level 5

This is being generated by SAS/EG (Version 7.13 HPF5 7.100.3.5486 64-bit Windows):

 


15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16 STYLE=HtmlBlue
17 STYLESHEET=(URL="file:///C:/Program%20Files/SASHome/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
18 NOGTITLE
19 NOGFOOTNOTE
20 GPATH=&sasworklocation
SYMBOLGEN: Macro variable SASWORKLOCATION resolves to "/saswork1/SAS_workC4F900005DF1_prodsascom5l/SAS_work42CA00005DF1_prodsascom5l/"
21 ENCODING=UTF8
22 options(rolap="on")
23 ;

 

I have no control over how SAS/EG prints these lines to the SAS log.

Tom
Super User Tom
Super User

Sounds like it might be a change in how EG generates those lines and not any change in SAS itself.

 

In SAS/Studio options there is option to preserve formatting of generated code.  Does EG have a similar option?

baharvey7817_1
Calcite | Level 5

I don't know.  What are the SAS Web Studio option for preserving formatting of generated code?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 4 replies
  • 2480 views
  • 0 likes
  • 2 in conversation