Some metadata objects
specify paths to physical files. If these files are stored outside
of the directories that are part of the standard migration process,
then you must manually migrate the files. If a file on the target
computer has a different physical path than the file had on the source
computer, then any migrated metadata that points to that file has
to be updated to point to the new location.
For example, the metadata
for a transformation within a job can point to a file that contains
source code. If the file is stored outside of the SAS configuration
directory, the file will not be moved during the standard migration
process. If you execute the job after migration, an error will appear
in the SAS log, saying that the transformation could not access the
source code file. To fix the problem, use the operating system tools
to copy the source code file to the target computer, preserving the
directory structure, if possible. Then run the job again. If the transformation
fails, review the physical path to the file and either change the
path on the file system or update the metadata that points to the
file.
Similarly, if the metadata
for an external file points to a file that is stored outside of the
SAS configuration directory, the file will not be moved during the
standard migration process. If you right-click the metadata for the
external file and select
Open, a
file
does not exist
error displays. To fix the problem,
manually migrate the file to the target computer and complete the
steps described earlier for transformations.
The metadata for a deployed
job, such as a job that has been deployed for scheduling, points to
a file that contains the code for the job. If you migrate the metadata
for a deployed job, and the metadata is pointing to a file that does
not exist in the target environment, then the deployed job will fail.
To fix the problem, manually migrate the file to the target computer
and complete the steps described earlier for transformations.
However, if the path
to the source code files in the target environment cannot be the same
as the path was in the old environment, you must update the directory
definition in the target environment, and then reschedule all flows
that include jobs that use the updated deployment directory definition.
To update directory
definitions in the target environment:
-
In SAS Management Console,
right-click
Schedule Manager and select
Deployment
Directories.
-
Edit any outdated deployment
directory definitions so that they point to the location where you
moved the source code files.
To identify jobs that
use an updated deployment directory definition:
-
In SAS Management Console,
right-click
Schedule Manager and select
Manage
Deployed Jobs.
-
In the
Manage
Deployed Jobs window, right-click the job and select
Properties.
-
In the
Properties window,
click the
Scheduling Details tab.
-
On the
Scheduling
Details tab, see whether an updated deployment directory
definition is specified in the
Directory field.
-
Note the names of all
jobs that specify an updated deployment directory definition.
To identify flows that
include a job that uses an updated deployment directory definition:
-
In SAS Management Console,
right-click
Schedule Manager and select
Manage
Deployed Jobs.
-
In the
Manage
Deployed Jobs window, expand a job that uses an updated
deployment directory definition. Note all flows that include the job.
-
Repeat for all jobs
that use an updated deployment directory definition.
To reschedule flows
that include a job that uses an updated deployment directory definition:
-
In SAS Management Console,
right-click
Schedule Manager and select
Manage
Deployed Jobs.
-
In the
Manage
Deployed Jobs window, expand a job that uses an updated
deployment directory definition. Note all flows that include the job.
-
Repeat for all jobs
that use an updated deployment directory definition.
To reschedule flows
that include a job that uses an updated deployment directory definition:
-
In SAS Management Console,
select
Schedule Manager.
-
In the table view on
the right, select
ALL in the
Filter control,
and then click
Filter Now. All flows are
displayed.
-
In the table view, press
the CTRL key and click to select all flows that use an updated deployment
directory definition.
-
Right-click a selected
flow, and then select
Schedule Flow.