SAS date macro variable

30 pts.
Tags:
Macros
Programming Languages
SAS 9.2
SAS programming
Hello,

i'm new in SAS

I'm writing this code below :

 

 

data _test_ ; d1 = put(mdy(month(today())-

 



1,1,year(today())-1),yymmdd10.);  

 



call symput('d1',"'"||put(d1,9.)||" 23:59:59'") ; d2 = put(mdy(month(today())-

 



1,1,year(today())),yymmdd10.);  

 



call symput('d2',"'"||put(d2,9.)||" 23:59:59'") ;  

 



run ;  

 



%put d1;

 

My question is

1. My understanding is %put will show value represent the variable d1 ( which should be something follow with 23:59:59' --> but it does not.

2. In my table _test_ also does not who 23:59:59 in it.

Can any one please explain why this doesn't show me the value ?



Software/Hardware used:
sas 9.2

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following