BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Phamhhm
Fluorite | Level 6

Hi

1) I download the Apple daily stock market from Yahoo Finance.

2) Import the data into SAS, work perfect.

PROC IMPORT DATAFILE="\AAPL.csv"

OUT=Apple DBMS=CSV REPLACE;

GETNAMES=YES;

RUN;

 

 

3)I set the trading day, work perfect.

DATA APPLETD;

SET Apple;

IF weekday(Date)=2 or weekday(Date)=3 or weekday(Date)=4 or weekday(Date)=5 or weekday(Date)=6;

RUN;

4) Try to use X12, but there is error :

ERROR: Time ID variable Date contains gaps.

 

PROC X12 DATA=APPLETD Date=Date;

VAR AdjClose;

x11;

output out=out a1 d10 d11 d12 d13;

RUN;

TITLE;

 

Thanks for the answers

Minh

1 ACCEPTED SOLUTION

Accepted Solutions
1 REPLY 1

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

Discussion stats
  • 1 reply
  • 1538 views
  • 0 likes
  • 2 in conversation