BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Daily1
Quartz | Level 8
11   data professions;
12      input Name $ 1-17 Gender $ 19 Occupation $ 21-33;
13      datalines;

NOTE: The data set WORK.PROFESSIONS has 5 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.07 seconds
      cpu time            0.00 seconds

What shows 11 12 13 numbers ? 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

@Daily1 wrote:
SAS Code
DATA Example1; OldPrice=10; RUN;

Output

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 DATA Example1;
74 OldPrice=10;
75 RUN;
 
NOTE: The data set WORK.EXAMPLE1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
 
 
76
77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
89
 
SAS Code line no. and output code no. are different why?

This happens because a lot of code is added automatically by either SAS Studio or Enterprise Guide. The options NOSOURCE and NONOTES suppress displaying the following code, so your log will start at line 72, as line 71 of the actually submitted code will contain the reset of the above system options.

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

Please use a DESCRIPTIVE SUBJECT LINE.

Using just "SAS" in a forum devoted exclusively to SAS is an outright declaration of mental bankruptcy.

I therefore corrected your post.

 

The numbers are log line numbers, used to orientate yourself in the log. Log messages will often refer to these numbers ("invalid numeric data in line ....").

 


@Daily1 wrote:
11   data professions;
12      input Name $ 1-17 Gender $ 19 Occupation $ 21-33;
13      datalines;

NOTE: The data set WORK.PROFESSIONS has 5 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           0.07 seconds
      cpu time            0.00 seconds

What shows 11 12 13 numbers ? 


 

Daily1
Quartz | Level 8
SAS Code
DATA Example1; OldPrice=10; RUN;

Output

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 DATA Example1;
74 OldPrice=10;
75 RUN;
 
NOTE: The data set WORK.EXAMPLE1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
 
 
76
77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
89
 
SAS Code line no. and output code no. are different why?
Kurt_Bremser
Super User

@Daily1 wrote:
SAS Code
DATA Example1; OldPrice=10; RUN;

Output

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 DATA Example1;
74 OldPrice=10;
75 RUN;
 
NOTE: The data set WORK.EXAMPLE1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
 
 
76
77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
89
 
SAS Code line no. and output code no. are different why?

This happens because a lot of code is added automatically by either SAS Studio or Enterprise Guide. The options NOSOURCE and NONOTES suppress displaying the following code, so your log will start at line 72, as line 71 of the actually submitted code will contain the reset of the above system options.

PeterClemmensen
Tourmaline | Level 20

@Daily1 Hi and welcome to the SAS Community 🙂

 

11, 12 and 13 are merely line numbers in your log.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1419 views
  • 1 like
  • 3 in conversation