DBLOAD Procedure Specifics for SAP ASE

Overview

For general information about this feature, see the DBLOAD Procedure.

The SAP ASE interface supports all DBLOAD procedure statements.

Note: SAS still supports this legacy procedure. However, to send data to your DBMS more directly the best practice is to use the LIBNAME statement for SAP ASE or the SQL pass-through facility. For more information, see LIBNAME Statement for the SAP ASE Engine and SQL Pass-Through Facility Specifics for SAP ASE.

Here are the SAP ASE interface specifics for the DBLOAD procedure.

PROC DBLOAD Example for SAP ASE

The following example creates a new SAP ASE table, EXCHANGE, from the DLIB.RATEOFEX data file. (The DLIB.RATEOFEX data set is included in the sample data that is shipped with your software.) An access descriptor ADLIB.EXCHANGE is also created, and it is based on the new table. The DBLOAD procedure sends a Transact-SQL GRANT statement to SAP ASE. You must be granted SAP ASE privileges to create new SAP ASE tables or to grant privileges to other users.

libname adlib 'SAS-library';
libname dlib 'SAS-library';

proc dbload dbms=sapase data=dlib.rateofex;
   server='mysrv1'; database='testdb'; user='myusr1';
   password='mypwd1'; table=EXCHANGE; accdesc=adlib.exchange;
   rename fgnindol=fgnindolar 4=dolrsinfgn;
   nulls updated=n fgnindol=n 4=n country=n;
   load;
run;
Last updated: February 3, 2026