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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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