Its very confusing to understand the difference between these two. Can some one explain their difference and usage with a good example.
Hi Rohit,
Go through this link and you are done
http://www.nesug.org/proceedings/nesug01/at/at1sa1.pdf
/Daman
Thanks for the link, I wish I had read that paper before the certification exam. I missed a question regarding truncover!
SAS also has brief description of difference here: http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645812.htm
as the words indicate, MissOver will set missing if given data do not match SAS instruction (e.g. INPUT statement); TruncOver will truncate data according to SAS instruction. Missover is best used when you have missing at the END column of data.
Consider the case when you try to read 10 characters (for example when using $10. informat) into variable NAME and there are only 5 left on the line. With MISSOVER the NAME will be missing, but with TRUNCOVER the five characters will be used as the value of NAME.
MISSOVER should normally never be used. Exception might be when you know that if the value is short it will be invalid (say a phone number or zip code).
You will frequently see programs coded to use MISSOVER and PAD. This is result of old programs (or old habits) from before the TRUNCOVER option was added. When you combine MISSOVER and PAD then you will get the same results as TRUNCOVER.
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!
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.