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

שלום,

יש לי שדה מסוג STRING 

שמכיל תאריך לדוגמא : 

14-Jul-2020

ואני רוצה להמיר אותו שיהיה שדה נומרי מסוג תאריך 

מה ניתן לעשות לגבי החודש שכתוב כטקסט?

1 ACCEPTED SOLUTION

Accepted Solutions
A-mit
Calcite | Level 5
באמצעות פקודת input.
שים לב שיש לך 11 תווים, ולכן בפקודת input הכנסתי date11.
data a;
format a_date date10.;
a='14-JUL-2020';
a_date=input(a,date11.);
run;
בהצלחה

View solution in original post

2 REPLIES 2
A-mit
Calcite | Level 5
באמצעות פקודת input.
שים לב שיש לך 11 תווים, ולכן בפקודת input הכנסתי date11.
data a;
format a_date date10.;
a='14-JUL-2020';
a_date=input(a,date11.);
run;
בהצלחה
Yul
Obsidian | Level 7 Yul
Obsidian | Level 7
תודה רבה זה מאוד עזר

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 2 replies
  • 694 views
  • 1 like
  • 2 in conversation