BookmarkSubscribeRSS Feed
plkkw
Calcite | Level 5

show date in short month name, e.g. Jan, feb. I found that there is only MONNAME in information map. how do I add such user-defined format for date in informartion map? I used sas 9.3

4 REPLIES 4
Jagadishkatam
Amethyst | Level 16

Hi, you can pull the short date form using the below code if the date is in numeric format.

data date;

date=substr(put(today(),date9.),3,3);

run;

If the date is in month name then you can use the substr function to extract the first three letters from the month name like

sunstr(monname,1,3);

Thanks,

Jag

Thanks,
Jag
plkkw
Calcite | Level 5

Hi Jag,

I have question that In which part of Web Report Studio and Information Map Studio run the code:

============

data date;

date=substr(put(today(),date9.),3,3);

run;

============

Please help to indicate.

shivas
Pyrite | Level 9

Hi,

You can do this in IMAP by just changing the valid width range to 3(for monname format).

Thanks,

Shiva

Imap.png

plkkw
Calcite | Level 5

HI shivas,

Thanks

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 4928 views
  • 2 likes
  • 3 in conversation