katrina11
Technical User
- Apr 30, 2011
- 108
Hello experts,
I wonder if you can help me with code...
I have 4 files:
File2008
File2009
File2010
File2011
and I need to set a field "FridayFlag" with value =1 for all fridays in each file.
Proc contents for the ServiceDate look like the following:
Variable Type Len Format Informat Label
ServiceDate Num 8 DATETIME22.3 DATETIME22.3 ServiceDateFrom
How can I do it considering the data type and format/informat (and leap years as well)?
Below is just an example of the output I need
(I do not know if it is a friday in the 1st record. Just to illustrate)
*****************************************************************
ServiceDate FridayFlag
02JAN2008:00:00:00.000 1
18NOV2008:00:00:00.000 o
22AUG2008:00:00:00.000 1
Thank you in advance,
Katrin
I wonder if you can help me with code...
I have 4 files:
File2008
File2009
File2010
File2011
and I need to set a field "FridayFlag" with value =1 for all fridays in each file.
Proc contents for the ServiceDate look like the following:
Variable Type Len Format Informat Label
ServiceDate Num 8 DATETIME22.3 DATETIME22.3 ServiceDateFrom
How can I do it considering the data type and format/informat (and leap years as well)?
Below is just an example of the output I need
(I do not know if it is a friday in the 1st record. Just to illustrate)
*****************************************************************
ServiceDate FridayFlag
02JAN2008:00:00:00.000 1
18NOV2008:00:00:00.000 o
22AUG2008:00:00:00.000 1
Thank you in advance,
Katrin