Hello everybody,
I have my base exam tomorrow. But, I have still some questions.
1. Look at
PROC FORMAT ;
VALUE valuename
...
RUN;
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.
Bye.
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:
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.
Hello @cons,
As to the remaining questions in your initial post:
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.