Put function in sas macro

Put function in sas macro

By: Hail Date: 03.06.2017

SAS(R) Macro Language: Reference

There is no way simple way to find a format that matches a string. As mjsqu says the function vartype does not do what you are hoping.

put function in sas macro

By posting your answer, you agree to the privacy policy and terms of service. Stack Overflow Questions Developer Jobs Documentation beta Tags Users. Sign up or log in to customize your list. Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us.

SASĀ® Macro Language: Reference, Fifth Edition

Log In Sign Up. Join the Stack Overflow Community. Stack Overflow is a community of 7. Join them; it only takes a minute: How do I use a function within the PUT function in SAS Ask Question.

How do I print out the format of a variable of interest? It doesn't make sense when used in this context, as macro variables do not have a 'type' as such. Yeah, this isn't possible as stated. What you're asking is 'what date format is this in'? SRSwift 1, 3 Sign up or log in StackExchange.

David Franklin, SAS Programmer/Consultant - Useful SAS Tips and other code

Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Stack Overflow works best with JavaScript enabled.

VARTYPE is a data-step function for determining whether a data-step variable is character or numeric type. MathOverflow Mathematics Cross Validated stats Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more 3. Meta Stack Exchange Stack Apps Area 51 Stack Overflow Talent.

SAS Tutorial 10 Dates and Date Functions
inserted by FC2 system