tag:blogger.com,1999:blog-10629375.post112810272711728510..comments2024-03-27T05:33:21.719-07:00Comments on Data Steps: SAS Function FridayStephenhttp://www.blogger.com/profile/01356803756509162192noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-10629375.post-52051900503186741162010-08-09T14:14:55.730-07:002010-08-09T14:14:55.730-07:00Actually, the length of y is 20. This gets set du...Actually, the length of y is 20. This gets set during compile time. The compiler doesn't get any information from the compress() function because the function hasn't executed yet. This can be easily confirmed by creating a work data set instead of using _null_:<br />data test;<br /> x = "Woohoo! It's Friday!";<br /> y = compress( x );<br />run;<br />proc contents data =Stephenhttps://www.blogger.com/profile/01356803756509162192noreply@blogger.comtag:blogger.com,1999:blog-10629375.post-3276621742239084642010-08-05T13:34:45.244-07:002010-08-05T13:34:45.244-07:00Wrong answer. Length of y = 18. Length of x = 20.Wrong answer. Length of y = 18. Length of x = 20.Anonymousnoreply@blogger.com