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
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;
....
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.