what is the difference between informat$8. $char8.
Answers were Sorted based on User's Feedback
Answer / sas learner
The informat $8. is almost identical to the $CHAR8. informat. However, $CHARw. does not trim leading blanks nor does it convert a single period in an input field to a blank, while $w. does both.
This is from sas help document..
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / chandrakanth
I do not know whether you made a typo, I am explaining you question as is
informat$8.-SAS takes this as a character variable called informat with total length defined as 8
(If I assume, it is $informat8. (not informat$8.)in your question it is the general form of informats to represent a character informat, likewise a numeric informat represented as informatw.d and date as informatw. w being the width and d being the decimal places)
whereas
$char8. is one kind of informat for a character variable whose length is 8...
Please let me know if you are not satisfied with answer...will explain in detail...
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / sundeep
informat is as same as $char but we use informat in defining a type(character or date) and $char is used only for specifying character length
| Is This Answer Correct ? | 1 Yes | 0 No |
How can you limit the variables written to output dataset in data step?
how does sas handle missing values in functions? : Sas programming
explain the proc in sas? : Sas-administrator
In which format does Date stores in sas..? What is the use of DATE in SAS.?
What is _n_?
what are the component of range? : Sas-bi
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
What is the difference between SAS Data step and SAS PROC SQL, and which is better?
how do you want missing values handled? : Sas programming
how can you get the single data set from the library(which has the number of data sets)?
3 Answers Accenture, Deloitte,
DATA ABC; INPUT TDATE DATE9. AVG; CARDS; 18APR2008 150.00 19APR2008 167.00 20APR2008 123.00 21APR2008 145.00 ; RUN HOW CAN I FIND THE DIFFERENCE BETWEEN AVG OF 18APR2008 ANF 21APR2008?? IF ANY ONE GETS IT PLS TRY TO POST IT.
8 Answers Verinon Technology Solutions,
How would you code a merge that will keep only the observations that have matches from both sets?