Hi, I've looked extensively at this forum for how to convert (calendar) years into fiscal year format, but I'm having problems with the formatting and data manipulation of the fiscal years. In my code I can use the year function to get years, but this is calendar years: format calendar_year Best12.; calendar_year=compress(year(date)); I then create a new variable called "combine" that just has the calendar_year with a "check" text: format combine $20. combine = compress(calendar_year||"check"); The result is what I want: "2019check" Note that I see the year displayed correctly. However, when I try to convert my code into fiscal year, using what I learned from this forum, I don't get what I want. I do the following: format fiscal_year year. ; fiscal_year = intnx('YEAR.4',date,0); If I proc print fiscal_year, it displays correct e.g., 2019. Then I try to create the combine2 variable as follows: format combine2 $20.; combine2 = compress(fiscal_year||"wrong"); My result is the SAS date format as follows: 1524wrong. I would like it to display as 2019wrong. What am I doing wrong? Thanks in advance.
... View more