New to SAS need date equivelant for script in proc SQL

5 pts.
Tags:
SAS
SQL
I need what the SAS equivalent for this is:
to_char (COLLECTION_ENTRY_DATE,'month/yy')as Entry_Month_Y,to_char(COLLECTION_ENTRY_DATE,'DD')asDAY_entry.
I have tried putting COLLECTION_ENTRY_DATE,monyy5.) and different variations but without success can you advice? Full script is:
proc sql; create table enteredcollections as select SCHEMA, ACCOUNT_NO, SCENARIO_NAME, COLLECTION_ENTRY_DATE, input (COLLECTION_EXIT_DATE, monyy5.) as Entry_Month_Y, COLLECTION_EXIT_DATE, ENTRY_AMOUNT, EXIT_AMOUNT, REASON, case when reason = 0 and exit_amount = 0 then '1' else "" end as countentry from webapp.enteredcollections order by account_no ; quit;
 

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.

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.

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.

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

Following

Share this item with your network: