libname libref <enginer> <"lib-specification"> <connectionOptions> <libraryOptions> <schema=databaseSchema> <user=userID> <password=password>;
options comamid=connection_type; %let remote_session_id=host_name <host_port>; signon remote_session_id<user=userID> <password=password>; rsubmit remote_session_id; libname <library details>; endrsubmit; rsubmit remote_session_id; proc download data=table_on_remote_machine out=table_on_local_machine; run; endrsubmit;
options comamid=connection_type; %let remote_session_id=host_name <host_port>; signon remote_session_id <user=userID password=password>; rsubmit remote_session_id; ... SAS code ... endrsubmit;
Macro Variable
|
Description
|
---|---|
etls_jobName
|
Specifies the name as supplied on the job properties panel.
|
etls_userID
|
Specifies the user ID that is used to generate the code for the job.
|
_INPUT
|
Specifies the libref.tablename
of the first input table.
|
_INPUT_count
|
Specifies the count
of input tables.
|
_INPUT_connect
|
Specifies the connect
statement for the table. This macro variable is used for explicit
pass-through statements.
|
_INPUT_engine
|
Specifies the library
engine. This macro variable can be used for explicit pass-through
statement construction.
|
_INPUT_memtype
|
Specifies the member
type of the table, either DATA or VIEW. Users can use this variable
to write transformation code to enable creation of views on output
tables or to know whether the input is a VIEW.
|
_INPUT_options
|
Specifies the table
option string, such as COMPRESS=YES ENCRYPT=YES. This macro option
is found on the table options dialog box from physical storage tab
on the table’s properties window.
|
_INPUT_alter
|
Specifies an alter or
password option text so that the table can be deleted or altered.
This macro variable is a subset of the _options string.
|
_INPUT_path
|
Specifies the location of table on metadata server.
|
_INPUT_type
|
Specifies a macro given
by the prompting framework. This macro variable should always be 1
for usage with SAS Data Integration Studio.
|
jobID
|
Specifies the unique metadata ID code that is given to the job when the job is first
created.
|
JOB_RC
|
Specifies a status handling macro variable that is set and reset (as the job runs)
to be the maximum return code value (&trans_rc) of the completed transformations.
|
_OUTPUT_count
|
Specifies the count
of output tables.
|
SYSLAST
|
Specifies the name of
the transformation's output table. In general, accept the default
value of YES when the current transformation creates an output table
that should be the input of the next transformation in the process
flow. Otherwise, select NO.
|
trans_rc
|
Specifies a status handling
macro variable that is set based on the return code of individual
steps within a transformation.
|