DATA Step, Macro, Functions and more

Put to a Number

Accepted Solution Solved
Reply
Super Contributor
Posts: 480
Accepted Solution

Put to a Number

Fiscal_Period_Year = put(trim(left(Fiscal_Year)) || trim(left(put(Fiscal_Period, Fiscal_Period_Format.))));

 

Any idea why in a data step Fiscal_Period_Year is not saving as a number?  I’m running into a scenario where it is saving as a giant string.


Accepted Solutions
Solution
‎12-14-2015 03:59 PM
Super User
Posts: 17,824

Re: Put to a Number

Try Input, PUT converts to a character.

View solution in original post


All Replies
Solution
‎12-14-2015 03:59 PM
Super User
Posts: 17,824

Re: Put to a Number

Try Input, PUT converts to a character.
Super Contributor
Posts: 480

Re: Put to a Number

thanks

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 235 views
  • 0 likes
  • 2 in conversation