I got 2 problems regarding the SAS date using macros. To make it more complicated I am stuck with 2 specific macros that i need to use(its part of the puzzle that I try to solve).
The macro that I need to use are:
%let id=741852
%let month=January February March April May June July August September October November December
The output that I need to generate is the grade rsults for students in different dicipline. Only by changing the ID of the student the output has to be updated all by itself.
The information related to the date are only needed in the Title of my Output. my code at the moment is as follow:
Title1 "Grade for &firstname &lastname;
Tilte2 "Bithtdate : &bday;
Title3 "ID :&id"
title5 "As of &sysdate, the grades are:"
To create the bday variable I used the a function since i had the info in my data set:
CALL SYMPUTX('bday',Birth_date)
At the moment my output title 2 and 4 are as follow:
Birtdate:12556
As of 17NOV12, the grades are:
How can I use the macro &month to have both title read as follow: Birthdate: 10 Janurary 2012 and As of 15 November 2012, the grade are as follow:
(**The date may seems wrong but im working in french and days come before the month)
I tought of the %SCAN fonction but it wont udate the month if I cange the ID. plz help :)
call symputx ("bday", put(Birth_date, worddatx20.));instead ofCALL SYMPUTX('bday',Birth_date)? - Dejan Peretin