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 |
what is syntax of proc merge ?
What are _numeric_ and _character_ and what do they do?
explain the function of substr in sas? : Sas-administrator
if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually
What are the five ways to do a table lookup in sas? : sas-grid-administration
In SAS explain which statement does not perform automatic conversions in comparisons?
which date functions advances a date time or date/time value by a given interval? : Sas programming
How to read an input file in sas?
What are symget and symput? : sas-macro
what is Global Symbol table and Local symbol table?
I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.
who is the best SAS clinical Trainer in Hyderabad?