Hi Folks,
We're recently installed a SAS Access to BigQuery on our Linux 9.4 M7 environment.
When we tried to execute the query below, the query executes (we verfied it on GCP) but instead of showing the results, the following error occurs. Any idea?
proc sql ;
connect to bigquery as perm (project='xx-yyyy-mm' credfile='/aaaa/bq/access.json'
schema='bb-yyyy-aa');
Create table teste as
select * from connection to perm
(select * from bb-yyyy-aa.schema.table_name );
;
quit;
And nothing more in the SAS log?
Try to query using a libname instead, and adding these options <might> give you more information in the log:
options sastrace=',,,d' sastraceloc=saslog msglevel=i;
So, I tríed to use libname instead of SQL pass-through but it’s not working for the structure inside GCP.
The user has access to a project id and once on it, he connect to other project id, schema and table. In SQL pass-through I can configure this type of access, defining the project id and schema on the connection and then in the FROM I can use project_id2.schema2.table.
There is any to use LIBNAME if I had this structure en GCP?
You can use the same parameters that you use in your CONNECT statement in a LIBNAME statement:
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n1bqkrtqhw4344n13kmsimffinu3.htm
Not sure if you need to use the three level notation in your SQL since project and schema are mentioned in the connection parameter.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.