DATA Step, Macro, Functions and more

SAS Coding and Naming Standards

Reply
N/A
Posts: 0

SAS Coding and Naming Standards

Hi All.

I am using SAS ETL for my project work where we are also dealing with Base SAS and SAS Macros.

Just wanted to check where we can get the globally accepted standards for SAS Coding and Naming conversions.

Request you to suggest such document or a link where I can get the SAS Coding and Naming Standards.

Any help or suggestion regarding the SAS standards would be highly appreciated.
regards
Kapil Agrawal
Trusted Advisor
Posts: 2,113

Re: SAS Coding and Naming Standards

The SAS documentation has the technical requirements and limitations for variable names (number of characters, beginning characters, length, etc.), but I suspect that is not what you are asking about.

SAS, per se, does not have any Coding and Naming standards. Some books have proposed best practices, but it is pretty much left to each organization to establish (or not) their own.
N/A
Posts: 0

Re: SAS Coding and Naming Standards

Okies.

Thanks a lot Smiley Happy
N/A
Posts: 0

Re: SAS Coding and Naming Standards

Hello All

Have a question regarding the length of the program and its affects in CPU time.

I have a very old program which is of 100 lines and without any coding standards (it was all mess). I have modified the code with respect to coding standards, which brought the program upto 400 lines approx.

Question: Does that affect the run time of the program, meaning does it increase CPU time. I personally think it would not affect.

NOTE: I did not change any logic.

Appreciate your thoughts!

Thanks!
Trusted Advisor
Posts: 2,113

Re: SAS Coding and Naming Standards

Bobby,

Not necessarily. The program written without standards may have been written very efficiently in terms of CPU and I/O time, but not efficiently in terms of program maintenance or portability.

The only way to know is to run both programs under various conditions.

I have a friend who writes very obscure SAS code, but it runs like greased lightning. He knows the way the SAS statements and programs run AND how to take the most advantage of his hardware platform.

Doc Muhlbaier
Duke
Super Contributor
Super Contributor
Posts: 3,174

Re: SAS Coding and Naming Standards

Suggestion: piggy-back'ing on a year-old forum POST - why? As an alternative, if needed, provide a pasted link to the prior post/thread if needed.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: SAS Coding and Naming Standards

Hi SBB - Yeah I would like to open a new thread, but when I did a search with a keyword, I found this thread with related/familier subject, hence I posted it here.

Suggestion taken!!!

Thanks
Ask a Question
Discussion stats
  • 6 replies
  • 215 views
  • 0 likes
  • 3 in conversation