Amazines Free Article Archive
www.amazines.com - Friday, April 19, 2024
Read about the most recent changes and happenings at Amazines.com
Log into your account or register as a new author. Start submitting your articles right now!
Search our database for articles.
Subscribe to receive articles emailed straight to your email account. You may choose multiple categories.
View our newest articles submitted by our authors.
View our most top rated articles rated by our visitors.
* Please note that this is NOT the ARTICLE manager
Add a new EZINE, or manage your EZINE submission.
Add fresh, free web content to your site such as newest articles, web tools, and quotes with a single piece of code!
Home What's New? Submit/Manage Articles Latest Posts Top Rated Article Search
Google
Subscriptions Manage Ezines
CATEGORIES
 Article Archive
 Advertising (133573)
 Advice (161671)
 Affiliate Programs (34799)
 Art and Culture (73855)
 Automotive (145712)
 Blogs (75614)
 Boating (9851)
 Books (17223)
 Buddhism (4130)
 Business (1330638)
 Business News (426446)
 Business Opportunities (366518)
 Camping (10973)
 Career (72795)
 Christianity (15848)
 Collecting (11638)
 Communication (115089)
 Computers (241953)
 Construction (38962)
 Consumer (49953)
 Cooking (17080)
 Copywriting (6733)
 Crafts (18203)
 Cuisine (7549)
 Current Affairs (20319)
 Dating (45908)
 EBooks (19703)
 E-Commerce (48258)
 Education (185521)
 Electronics (83524)
 Email (6438)
 Entertainment (159854)
 Environment (28970)
 Ezine (3040)
 Ezine Publishing (5453)
 Ezine Sites (1551)
 Family & Parenting (111007)
 Fashion & Cosmetics (196605)
 Female Entrepreneurs (11853)
 Feng Shui (134)
 Finance & Investment (310615)
 Fitness (106469)
 Food & Beverages (63045)
 Free Web Resources (7941)
 Gambling (30227)
 Gardening (25202)
 Government (10519)
 Health (630137)
 Hinduism (2206)
 Hobbies (44083)
 Home Business (91657)
 Home Improvement (251211)
 Home Repair (46243)
 Humor (4723)
 Import - Export (5459)
 Insurance (45104)
 Interior Design (29616)
 International Property (3488)
 Internet (191031)
 Internet Marketing (146687)
 Investment (22861)
 Islam (1161)
 Judaism (1352)
 Law (80506)
 Link Popularity (4596)
 Manufacturing (20914)
 Marketing (99316)
 MLM (14140)
 Motivation (18233)
 Music (27000)
 New to the Internet (9496)
 Non-Profit Organizations (4048)
 Online Shopping (129734)
 Organizing (7813)
 Party Ideas (11855)
 Pets (38165)
 Poetry (2229)
 Press Release (12689)
 Public Speaking (5643)
 Publishing (7566)
 Quotes (2407)
 Real Estate (126700)
 Recreation & Leisure (95495)
 Relationships (87674)
 Research (16182)
 Sales (80350)
 Science & Technology (110290)
 Search Engines (23514)
 Self Improvement (153300)
 Seniors (6220)
 Sexuality (36010)
 Small Business (49311)
 Software (83033)
 Spiritual (23516)
 Sports (116155)
 Tax (7663)
 Telecommuting (34070)
 Travel & Tourism (308304)
 UK Property Investment (3123)
 Video Games (13382)
 Web Traffic (11790)
 Website Design (56919)
 Website Promotion (36663)
 World News (1000+)
 Writing (35844)
Author Spotlight
ELLIOT CHANG

Financial analyst and author writing on economy and business. ...more
TAL BARNEA

Tal is an electrical engineer with over 25 years of expertise with hardware, software, mechanical an...more
MANMOHAN SINGH

Digital marketing professional with 8 years of experience. A good listner, Stratgist and fun loving ...more
LEMUEL ASIBAL

Lemuel Asibal is a web content writer who also ventures on writing articles and blog posts about any...more
TUSHAR BHATIA

Tushar Bhatia is the Founder President of EmpXtrack Inc with over 19 years of experience in the soft...more


Handling errors in SAS environment by Clinnovo Research Labs





Article Author Biography
Handling errors in SAS environment by
Article Posted: 07/05/2013
Article Views: 466
Articles Written: 26
Word Count: 883
Article Votes: 2
AddThis Social Bookmark Button

Handling errors in SAS environment


 
Education,Health,Science & Technology
Introduction: Programmers sometime perform errors during SAS program coding; these errors are displayed within one of the windows in SAS environment known as log window. These errors usually appear during the compilation and execution phases of SAS programming. Programmers can debug SAS programming errors by understanding processing messages in the SAS log window and then fixing the code spontaneously.

The errors are called bugs which are classified as:

Syntax: Missing semicolon, uninitialized variable and variable not found

Data: Missing values were generated; numeric to character conversion, invalid data, and character field is truncated

Logic: DATA step produces wrong results but no error message.

Referencing the SAS Log window for errors:

The first and most important rule in debugging SAS programs is to always, follow checking the SAS log. After running a SAS program many programmers turn immediately to the output window for a default generated report. This is understandable, but not advisable. It is entirely possible and sooner to get output that looks fine but it might be sometime totally incorrect output report. So often checking the SAS log window whenever a simple program has been run successfully is the only way to know whether a program has run properly or not. A SAS log contains majorly 3 types of messages: errors, warnings and notes.

Errors:

If a programmer gets an error message in SAS program, programmer will know it because error messages get programmers attention by not at all executing a job with any one of the bugs. Error messages are not quiet, discrete, or subtle; they are the loud, rabble-rousers of SAS messages by stopping a program dead in its tracks. Till the errors are corrected they don’t allow the programmers to move further in programming. For example: ERROR: No CARDS or INFILE statement.

Warnings:

Warnings are less dire than errors. SAS also prints warnings in log window but then goes ahead and runs the job anyway. Many programmers, including some professional programmers, try to ignore warnings messages. But it should not be ignored because sometimes the situations that result in warnings are indeed harmless; other times they indicate grave problems, if unresolved, will render the results worthless. Programmers should always check all warnings to see if they are harmless or hazardous with the programming. For example: WARNING: The data set WORK.SAMPLE may be incomplete. When this step was stopped there were 0 observations and 3 variables.

Different error messages are displayed depending on the error that is generated, some of the error messages that are generated are:

Notes:

Notes are the most innocuous messages that SAS displays in the SAS log. They simply inform the programmer of the status of their program. Notes contain information such as the number of records inputted from an external file or the number of observations written in a SAS data set. They are critically important way of catching errors. For example: NOTE: The data set WORK.SPECIES has 14 observations and 3 variables.

The missing semicolon:

Even the newest of SAS programmers knows that every SAS statement ends with a semicolon; so it is ironic that one of the most common bugs is the missing semicolon. While most SAS error messages are clear and easy to understand, the hallmark of a missing semicolon is confusion. Missing semicolons often produce a long stream of baffling messages. For Example: NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.INFILE may be incomplete. When this step was stopped there were 0 observations and 3 variables.

Uninitialized variable and variable not found:

These two related messages intimate a programmer that SAS was unable to find one of the variables. The first time users if they see one of these messages will probably wonder what SAS is commenting about. When SAS is unable to find a variable in a DATA step, SAS prints the variables uninitialized message. Then SAS creates the variable, sets its values to missing for all observations and runs the DATA step. For Example: NOTE: Variable VAR8 is uninitialized.

Numeric to character conversion:

If you accidentally mix numeric and character variables, SAS will convert the data from one type to the other, run the program anyway and print the values. Printed values note have been converted to a note in the log window. NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).

Conclusion:

A SAS programmer should always check their SAS log even when the output looks fine. Notes are just as important as error messages and warnings in debugging the programs. Understanding an error message and debugging the error can not only help in obtaining a correct analyses report but also help the programmer to improve his SAS programming knowledge and thus help him to perform better in future.

Clinnovo is a clinical innovation company. It is pioneer CRO industry in India. Clinnovo offers professional clinical research course , clinical data management course ,SAS Training and imaging training. Clinnovo has been serving different bio-pharma industries across the world with excellence and high quality. For more information contact at +91 9912868928, 040 64635501

Related Articles - SAS, Environment, Clinical, Data, Errors, Debugging, Handling, Datasteps, Missing values, Program, warning, messages, Programmers, uninitialized, step,

Email this Article to a Friend!

Receive Articles like this one direct to your email box!
Subscribe for free today!

 Rate This Article  
Completely useless, should be removed from directory.
Minimal useful information.
Decent and informative.
Great article, very informative and helpful.
A 'Must Read'.

 

Do you Agree or Disagree? Have a Comment? POST IT!

 Reader Opinions 
Submit your comments and they will be posted here.
Make this comment or to the Author only:
Name:
Email:
*Your email will NOT be posted. This is for administrative purposes only.
Comments: *Your Comments WILL be posted to the AUTHOR ONLY if you select PRIVATE and to this PUBLIC PAGE if you select PUBLIC, so write accordingly.
 
Please enter the code in the image:



 Author Login 
LOGIN
Register for Author Account

 

Advertiser Login

 

ADVERTISE HERE NOW!
   Limited Time $60 Offer!
   90  Days-1.5 Million Views  

 

Great Paranormal Romance


TIM FAY

After 60-plus years of living, I am just trying to pass down some of the information that I have lea...more
LAURA JEEVES

At LeadGenerators, we specialise in content-led Online Marketing Strategies for our clients in the t...more
ALEX BELSEY

I am the editor of QUAY Magazine, a B2B publication based in the South West of the UK. I am also the...more
GENE MYERS

Author of four books and two screenplays; frequent magazine contributor. I have four other books "in...more
SUSAN FRIESEN

Located in the lower mainland of B.C., Susan Friesen is a visionary brand strategist, entrepreneur, ...more
STEVERT MCKENZIE

Stevert Mckenzie, Travel Enthusiast. ...more
STEPHEN BYE

Steve Bye is currently a fiction writer, who published his first novel, ‘Looking Forward Through the...more
SHALINI MITTAL

A postgraduate in Fashion Technology. Shalini is a writer at heart! Writing for her is an expression...more
ADRIAN JOELE

I have been involved in nutrition and weight management for over 12 years and I like to share my kn...more
JAMES KENNY

James is a Research Enthusiast that focuses on the understanding of how things work and can be impro...more

HomeLinksAbout UsContact UsTerms of UsePrivacy PolicyFAQResources
Copyright © 2024, All rights reserved.
Some pages may contain portions of text relating to certain topics obtained from wikipedia.org under the GNU FDL license