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
תודה רבה זה מאוד עזר

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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