BookmarkSubscribeRSS Feed
SASuserxx
Calcite | Level 5

Hi all,

 

im trying to change my sas format from 

20160107

 to a sas format sas forecast studio can read.

 

i have tried yymmddn8. but it comes up blank. my current laod format is numeric 

 

thank you

 

4 REPLIES 4
RahulG
Barite | Level 11
data _null_;
format want date9.;
val=20160515;
want=input(put(val,8.),yymmdd8.);
put want=;
run;

I converted numeric value to string and then converted it back to numeric using yymmdd8.

SASuserxx
Calcite | Level 5
HI

Thank you,

This would mean is I have a column with all the dates of 20160101 then I will have to put all in

I would just replace the data to the variables column




Reeza
Super User

@SASuserxx wrote:
HI

Thank you,

This would mean is I have a column with all the dates of 20160101 then I will have to put all in

I would just replace the data to the variables column





This is unclear. 

Kurt_Bremser
Super User

When you posted your question, you saw this at the bottom:

 

Stop right there! Before pressing POST, tick off this checklist. Does your post …

✔ Have a descriptive subject line, i.e., How do I ‘XYZ’? ✔ Use simple language and provide context? Definitely mention what version you’re on. ✔ Include code and example data? Consider using the SAS Syntax feature.

 

 

 

 

 

 

Please follow these suggestions, especially #3. Use the macro from https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat... to post your data in the form of a data step.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 4 replies
  • 733 views
  • 2 likes
  • 4 in conversation