Problem Note 39944: The error "Command returned error code SYSRC=4" when you run a backup job in the SAS® Metada Server
When you run a backup job in the SAS Metadata Server by using either the %OMABAKUP macro or the Backup Wizard in SAS® Management Console or in the BackupRepositories.sas program, an error might occur:
ERROR: Command returned error code SYSRC=4
The error occurs in some Microsoft Windows operating environments when the xcopy command is used in the X statement to back up the journal files and configuration files of the SAS Metadata Server. For some Windows operating environments, the /o, /x, and /y switches are not valid for the xcopy command.
The %OMABAKUP macro checks the value of the &SYSSCPL macro variable for the current operating environment to conditionally submit the proper form of the xcopy command. However, several new operating environment values have been recently added, and the %OMABAKUP macro has not been updated to check for these new values. Thus, a match might not be found, and the proper condition is not triggered. For a complete list of the latest &SYSSCPL values, see Usage Note 36549, "SYSSCP and SYSSCPL Values for Platforms Running SAS 9.2 or Later."
To work around this error, modify the omabakup.sas program by following one of the options below. The default location for the program is !SASROOT\core\sasmacro.
Option 1:
- In omabakup.sas, find this line of code:
%let cmd= xcopy "&sourcePath" "&destPath" /c /i /h /k /o /x /y;
- Change the %LET statement to the following:
%let cmd= xcopy "&sourcePath" "&destPath" /c /i /h /k;
Option 2:
- Start a SAS session on the SAS Metadata Server computer.
- Submit the following statement:
- In the SAS log, note the value that is displayed.
- In omabakup.sas, find this line:
%if &sysscpl=WIN_NTSV %then
- Replace WIN_NTSV with the value of &SYSSCPL from step 3, which is the correct value for your SAS Metadata Server operating environment.
Operating System and Release Information
SAS System | SAS Metadata Server | Microsoft Windows Server 2003 for x64 | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
z/OS | 9.2 TS2M0 | |
Microsoft Windows Server 2008 for x64 | 9.2 TS2M0 | |
Microsoft Windows XP Professional | 9.2 TS2M0 | |
Windows Vista | 9.2 TS2M0 | |
Windows Vista for x64 | 9.2 TS2M0 | |
64-bit Enabled AIX | 9.2 TS2M0 | |
64-bit Enabled HP-UX | 9.2 TS2M0 | |
64-bit Enabled Solaris | 9.2 TS2M0 | |
HP-UX IPF | 9.2 TS2M0 | |
Linux | 9.2 TS2M0 | |
Linux for x64 | 9.2 TS2M0 | |
Solaris for x64 | 9.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In some Microsoft Windows operating environments, when the SAS® Metadata Server backup runs, it produces "ERROR: Command returned error code SYSRC=4" as it copies the SAS Metadata configuration and journal files.
Type: | Problem Note |
Priority: | medium |
Topic: | System Administration ==> Servers ==> Metadata
|
Date Modified: | 2010-08-25 15:28:10 |
Date Created: | 2010-06-09 13:52:55 |