BookmarkSubscribeRSS Feed
Asmam
Fluorite | Level 6

I am trying to create infomap using SAS Information Map Studio , 

I create a variable that took a period as "201605" and turn it to date like 2016-05-31 , I used this code 

(put((intnx('month', input(cats(<<DM_DATE.MOIS_ET_ANNEE_YYYYMM>>,'01'),yymmdd10.),0,'ending')),yymmdd10.))

the problem is when I am trying to validate the expression I got this error 

Capture.PNG

 

however when I copy the query used by Infomap on SAS Entreprise Guide it worked 

PROC SQL Outobs=100;
Create table WORK.A44 as
SELECT  DISTINCT 
	 ( (put((intnx('month', input(cats(table0.MOIS_ET_ANNEE_YYYYMM,'01'),yymmdd10.),0,'ending')),yymmdd10.)) )  AS DIR_7 LABEL='Datetest' 
FROM
	abb.DM_DATE table0 
 GROUP BY
	1;
quit;
4 REPLIES 4
Asmam
Fluorite | Level 6

thanks @Kurt_Bremser for your answer but The << and >> cames automatically when I select the variable from the data source ! even when removed it nothing change 

LinusH
Tourmaline | Level 20
@Kurt_Bremser the <<>> are mandatory when referring to relational data, so that part should be ok.
According to the documentation 'ending' is not a valid alignment option, 'end' is.
Then I would solve this kind data manipulation in the data at rest, rather than in the virtual layer.
Data never sleeps
Kurt_Bremser
Super User

What kind of server are you using in Enterprise Guide? The same pooled workspace server, with user asma@saspw, or with a valid operating system account and a standard (non-pooled) workspace server?

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
  • 1149 views
  • 0 likes
  • 3 in conversation