BookmarkSubscribeRSS Feed
J111
Obsidian | Level 7

Hello,

What is the best way to convert Have data to Want data ?

From 30OCT2021 to 301021 without informat as 30OCT2021 is actually created during a data step 

Thanks

-----------------------------------------------------------------
Data Have ;
input x9 $9. ;
cards ;
30OCT2021
3NOV2022
;
Run ;

------------------------------------

Data Want ;
input x10 ddmmyy8. ;
format x10 ddmmyy8. ;
cards ;
30102021
03112022
;
run ;

0 Likes
JUST RELEASED

SAS Viya with pay-as-you-go pricing.

Deploy software automatically at the click of a button on the Microsoft Azure Marketplace.

Learn more

55 percent discount.jpg

Recommended by SAS
These recommendations are generated using AI from SAS. For personalized recommendations, sign in with your SAS profile.
Discussion stats
  • 0 replies
  • 6 views
  • 0 likes
  • 1 in conversation