- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello team,
What does format find $15. mean in SAS?
Please advise me.
Regards,
blue blue
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
format find $15.;
This is a FORMAT Statement, and it assigns the $15. format to the variable find.
If this variable is not present in any of the input datasets, it will be defined as character with a length of 15.
If the goal is to actually define the variable as mentioned above, a LENGTH statement would be more appropriate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello team,
I searched for it and I couldn't find it.
Regards,
blueblue
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If a word appears at the beginning of a data step statement without a following equal sign, then it has to be a Data Step Statement.
Bookmark the link, and use it as a starting point for similar inquiries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please post the code where it is used, so we can explain it for you in context.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
data out.mydata; merge thisdata(in=a) thatdata(in=b); by hkey; format find $15.; if a and b then Find = 'Both'; if a and not b then Find = 'not_in_thisdata' if a then output; run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
format find $15.;
This is a FORMAT Statement, and it assigns the $15. format to the variable find.
If this variable is not present in any of the input datasets, it will be defined as character with a length of 15.
If the goal is to actually define the variable as mentioned above, a LENGTH statement would be more appropriate.