BookmarkSubscribeRSS Feed
carmendee
Obsidian | Level 7

In Information Map, I need to join the following in advanced edit:

MM/DD/YYYY (char)

to either

YYYYMMDD (numeric) or DATETIME20 (DDMMYYYY:00:00:00)

Help!

3 REPLIES 3
Haris
Lapis Lazuli | Level 10
Hard to understand what you're looking to do but seems like you need to get all three of your dates in the same format. Input() function can be used to get char. to date. format and a datepart() function will extract the date from the datetime variable.
carmendee
Obsidian | Level 7

Because these are two different data types, I need to find a way to join them in Information Map.  I cannot "first" get the data types the same in that software.

LinusH
Tourmaline | Level 20
Your inquiry suggests that you don't have an organized data model. That would be OK in a Staging area, but definitely not in the data mart layer which fronts the end users.
Data never sleeps

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 975 views
  • 1 like
  • 3 in conversation