BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9
options sastrace=',,d,d' sastraceloc=saslog nostsuffix ;
LIBNAME sap_src SASIOSR3  trace=1  BatchMode=1  language=EN  Client=100  TRANSERRORCOMPATMODE=Y  r3name=DA1  group=DA1dialog  mshost="da1cs.al.ndis.be"  USER=SASRFC  PASSWORD="{SAS002}A15F8F56266BD0E83706CF0C04E43F23364802EA" ;

proc sql;
create table temp as select *
from sap_src."/1CPMB/BSTD8PSB"n where monotonic()<10;
quit;
options sastrace=off ;

Hello, i'm trying to read data from SAP using the data surveyor. I'm able to connect to SAP but when reading data i'm getting an error.

My logfile is in attachment, any idea's?

 

Filip

 

2 REPLIES 2
Patrick
Opal | Level 21

Could this be the reason?

 

Also: Don't use monotonic(). This is an undocumented and unsupported function which can return unexpected results when used with a database. If you want to reduce volumes for testing rather use Proc SQL options INOBS and OUTOBS like

Proc SQL inobs=10;

....

Filipvdr
Pyrite | Level 9
hi Patrick, we found the same support link and checked with our SAP support team but they could not fix the issue. You think it's SAP related or we're missing a setup within the SAS configuration. As we are able to connect to SAP i'm thinking it's more SAP related?

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

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1537 views
  • 0 likes
  • 2 in conversation