Thursday, 23 January 2014

How to compress or extract a SAR file in SAP



What is a SAR file

SAR files are  delivered by SAP for releasing supportpackages of Kernel and other OS level binaries.

How to extract a SAR file in SAP in Unix based operating systems(AIX / HP-UX )

Login to the Unix system with sidadm user

Navigate to the path where the SAR file is located and use following command

to extract a SAR file.

SAPCAR -xvf <filename.SAR>

Please find below example of extracting PIS_COFINS_604_20110311.SAR file extraction. 6 files got extracted from this  process












How to compress some files to generate a SAR file in SAP in Unix based operating systems(AIX / HP-UX ) ?

Login to the Unix system with sidadm user

Navigate to the path where the files that are to be compressed are located and  use the following command to compress a single SAR file.

SAPCAR -cvf <filename.SAR>

To compress multiple files, we can use the following command:

SAPCAR -cvf <compressed_filename.SAR> <file1> <file2> <file n>


Please find below screenshot where three files UMODPROT.T01, IMODPROT.T01 and CMODACT.T01 are compressed to form  king.SAR file.





What is SAPCAR ?

SAPCAR is an utility provided by SAP to compress or extract files (similar to winzip, tar etc)

2 comments: