BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
conrad_thiele
Calcite | Level 5

Hi All,

 

I am trying to understand the RUN statement. Does it read above for other RUN statement and or the beginning of the file which contains a hidden line (OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;)?

 

Example of the log file in SAS Studio:

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 /****************************************************************/
74 /* The INFILE statement uses a Microsoft Windows path. */
75 /* */
76 /* For UNIX, Linux, SAS University Edition, and SAS on Demand: */
77 /* Change the INFILE statement to: */
78 /* infile "&path/newemps.csv" dlm=','; */
79 /* */
80 /* For z/OS: */
81 /* Change the INFILE statement to: */
82 /* infile "&path..rawdata(newemps)" dlm=','; */
83 /****************************************************************/
84
85 data work.newsalesemps;
86 length First_Name $ 12 Last_Name $ 18
87 Job_Title $ 25;
88 infile "/folders/myfolders/newemps.csv" dlm=',';
89 input First_Name $ Last_Name $
90 Job_Title $ Salary /*numeric*/;
91 run;
 

Cheers Conrad

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Your front-end (SAS Studio) sends code automatically before each of your submits that initializes this individual submit. In order to keep your log clean, log output is prevented by the first line. In line 71 (which is still "hidden"), there's another options statement that reverts this, so you get log output starting at line 72.

 

Note from Community Manager @BeverlyBrown on 6/7/21: 

For additional details, see Documentation on Suppressing Information in the SAS Log.

View solution in original post

3 REPLIES 3
Kurt_Bremser
Super User

Your front-end (SAS Studio) sends code automatically before each of your submits that initializes this individual submit. In order to keep your log clean, log output is prevented by the first line. In line 71 (which is still "hidden"), there's another options statement that reverts this, so you get log output starting at line 72.

 

Note from Community Manager @BeverlyBrown on 6/7/21: 

For additional details, see Documentation on Suppressing Information in the SAS Log.

conrad_thiele
Calcite | Level 5
Makes sense 🙂
Quentin
Super User

Does SAS Studio give you an option to choose NOT to hide that bit of the log?  I always get nervous when stuff is hidden from me, code or otherwise.

: )

BASUG is hosting free webinars Next up: Jane Eslinger presenting PROC REPORT and the ODS EXCEL destination on Mar 27 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 10889 views
  • 2 likes
  • 3 in conversation