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

I wonder in which cases related to first, last, lag, dif... operations I do need to run the data step in single mode to get the right results.

Whether I comment or not the single thread option the resulting table is correct.

Does it depend on the size of the table if cas runs in multimode?

 

data CASUSER.TESTA_DUP2;
/*  / SESSREF='mysession' single=yes; */
   set PUBLIC.WET_PX10_MAN_NOM_SL;
by timestamp sample_id;
if first.timestamp then _position_ = 0;
_position_+1;
run;

proc cas;
source MPG_toyota;
		create table CASUSER.TESTA_DUP2{options replace=true} as 
			select a.*, _frequency_
               from CASUSER.TESTA_DUP2 a left join 
				(select timestamp, max(_position_) as _frequency_ from CASUSER.TESTA_DUP2 group by 1)  b 
			on a.timestamp=b.timestamp  ;
endsource;
fedSQL.execDirect / query=MPG_toyota;
quit;
1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

Hello ,

 

use this option 

options MSGLEVEL=I ;

to get full info in the LOG.

 

The ADDROWID data set option maintains the order of your data when executing a DATA step in SAS® Cloud Analytic Services (CAS)

SAS Help Center: SAS CALL Routines and Functions That Are Not Supported in CAS

 

Ciao,

Koen

View solution in original post

1 REPLY 1
sbxkoenk
SAS Super FREQ

Hello ,

 

use this option 

options MSGLEVEL=I ;

to get full info in the LOG.

 

The ADDROWID data set option maintains the order of your data when executing a DATA step in SAS® Cloud Analytic Services (CAS)

SAS Help Center: SAS CALL Routines and Functions That Are Not Supported in CAS

 

Ciao,

Koen

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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