04-25-2016 03:45 AM
I have my base exam tomorrow. But, I have still some questions.
1. Look at
PROC FORMAT ;
What is the valuename format default length? At 9.2 it's 8 byte. At 9.4 it's 31 or 32 bytes. If I get exam question then I have to answer 31 or 32 bytes?
2. Look at default informat length at 9.4: Is it still 8 bytes for numeric variable and 8 bytes for character variables?
3. Look at target variable at 9.4: The target variable by tranwrd has the length 200 bytes as default?
Thanks in advance.
04-25-2016 04:13 AM
Sorry, your questions are confusing. I wouldn't have expected that in a SAS exam, they would ask you about byte storage, that is outside the scope of a SAS question. Do you mean default character length, then that is 8.
For tranwrd, yes, you are correct per the documentation:
04-25-2016 04:30 AM
04-25-2016 05:46 AM
Have never come across a need to know this, however I would say Length assigns the length in character spaces, i.e. length $4 means four characters. If those characters are exactly a byte, then yes it is the same, but I wouldn't have thought knowing how SAS assigns data into the underlying file structure is outside the bounds of a SAS test.
04-25-2016 07:16 AM
As to the remaining questions in your initial post: