Winzip Encryption via SAS
Winzip Encryption via SAS
(OP)
Hi,
I was wondering if anyone can provide some help, I am currently using the X command to zip an output excel file via WinZip. The excel file was created via SAS using ODS markup.
I know that WinZip has the fucntion to add 256Bit AES encryption.
I need to know how i can incorporate that encryption funtion into the X command. Is there a specific option that i need to invoke.
Any help is greatly apprecciated.
Regards
Doyleuk
I was wondering if anyone can provide some help, I am currently using the X command to zip an output excel file via WinZip. The excel file was created via SAS using ODS markup.
I know that WinZip has the fucntion to add 256Bit AES encryption.
I need to know how i can incorporate that encryption funtion into the X command. Is there a specific option that i need to invoke.
Any help is greatly apprecciated.
Regards
Doyleuk
RE: Winzip Encryption via SAS
Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
RE: Winzip Encryption via SAS
We use ZipGenius in work which gives us the option to add a password to the file.
If you choose to use ZipGenius, there is a macro we use (code below) to zip files.
CODE
add_file=*.*,
password=0,
working_directory=C:\Program Files\ZipGenius 6\,
program_name=zg.exe,
batch_location=C:\zip_batch.bat
);
option xsync=1;
filename zip "&batch_location.";
data _null_;
file zip;
x = "&program_name. -add " || '"' || "&filename." || '"' || " C9 F0 P&password. +" || '"' || "&add_file." || '"';
put x;
run;
x "&batch_location.":
option xsync=0;
%mend;
RE: Winzip Encryption via SAS
Klaz
RE: Winzip Encryption via SAS
RE: Winzip Encryption via SAS
RE: Winzip Encryption via SAS
CODE
%LET OUT_FILE = C:\&start - &end &NAME..xls;
%LET ZIP_LOC = C:\zip\;
%LET ZIP_FILE = &ZIP_LOC\&NAME &start - &end..ZIP;
options noxwait xsync; run;
DATA _NULL_;
ZIPIT = &ZIP_PGM||' "'||"&ZIP_FILE"||'" "'||"&OUT_FILE"||'" ';
PUT ZIPIT=;
CALL SYSTEM (ZIPIT);
RUN;
RE: Winzip Encryption via SAS
Can you confirm this encrypts the data as well as putting a password on the zip file.
Password protection and encryption are 2 different things.
Many thanks for all you help
RE: Winzip Encryption via SAS
RE: Winzip Encryption via SAS
PLease help as this programme would help me so much
RE: Winzip Encryption via SAS
http://www.winzip.com/prodpagecl.htm
RE: Winzip Encryption via SAS
My organisation only installs version 9. My will try raising an IT job that will allow me to get winzip v10 or later and then i will get the add-on.
Many Thanks for all your help.
RE: Winzip Encryption via SAS
I do have the add-on for version 9. "Winzip Command Line Support Add-on 1.1 SR1" It may not be available at this point in time, but keep in mind that this command line utility is not part of the standard winzip bundle. I had to get my IT group to install the standard Winzip and get them to install the add-on separately.