When a job is deployed,
the file that was entered in the
Raw data file or directory field of the
Staging Parameters tab of
the staging transformation (or in the
Adapter Setup wizard) appears in the generated code as part of a macro assignment
(a
%let
statement). In a production
environment, it is possible that the raw data file changes from day
to day, or that it needs to be allocated externally, for example in
the JCL of a
z/OS batch job.
Note: For adapters that accept
files or directories as input, the code is
%LET RAWDATA=raw-data-assignment
.
If the raw data file
or directory is allocated externally, it will be used in preference
over the location referred to in the
%let
statement. For completeness, the
%let
statement can be removed, but this is not necessary.
CAUTION:
Do not
remove or comment out the %let statement for adapters that do not
have a raw data file or a directory.
For some adapters
such as the SAP ERP, MS SCOM, HP Reporter, VMware Data Acquisition,
and VMware vCenter adapters, the
%let
statement is present in the code. However, that statement does not
specify a file or a directory. Instead, the
%let
statement points to the libref of the SAS library that is associated
with the raw data. (The location of the input library typically remains
fixed, unlike the name or location of individual raw data files.)
If the job is redeployed,
the raw data assignment will be reset and will need to be removed
again, unless the raw data parameter in the
Staging Parameters tab is removed beforehand.
When allocating the
raw data file externally for MXG based adapters, the correct fileref
must be used. (On
z/OS, the fileref is assigned with a DD JCL statement.)
For adapters that are not based on MXG, use a fileref
of RAWDATA. For adapters that are based on MXG, use the filerefs in
the following table:
Table of Filerefs for Adapters That Are Based on MXG