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

How do I create a simple Due Date as a calculated Item in SAS VIYA.

I have a date:  'File_Sent_Date'
I need to add 300 days to the 'File_Sent_Date'

I need the result to be in date format.

I really thought it would be simple like Due_Date=intnx('File_Sent_Date',270), But I guess I can't use Intnx in SAS Viya.

Thank you!!

1 ACCEPTED SOLUTION

Accepted Solutions
Randy_Morris
Fluorite | Level 6

I found a way to achieve my due date.  There might be a better way to do it, but it works for me.  Thanks for everyone's replies!

 

TreatAs(_Date_, ( TreatAs(_Number_, 'FILE_SENT_DATE'n) +
300))

 

View solution in original post

4 REPLIES 4
SASJedi
Ammonite | Level 13

Your syntax for INTNX is incorrect. Have you tried:

Due_Date=intnx('day',File_Sent_Date,300)

 

Check out my Jedi SAS Tricks for SAS Users
Randy_Morris
Fluorite | Level 6

I get “Unknown function: intnx “

SASKiwi
PROC Star

I suspect you are trying to add a formula to SAS Viya Visual Analytics. Is that correct? VA formulas have their own language and it is not the same as traditional SAS language like INTNX. 

Randy_Morris
Fluorite | Level 6

I found a way to achieve my due date.  There might be a better way to do it, but it works for me.  Thanks for everyone's replies!

 

TreatAs(_Date_, ( TreatAs(_Number_, 'FILE_SENT_DATE'n) +
300))

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Discussion stats
  • 4 replies
  • 1242 views
  • 6 likes
  • 3 in conversation