BookmarkSubscribeRSS Feed
Billybob73
Quartz | Level 8

Hi,

I wonder if it's possible to create a zip file with a password on a SAS Linux server.

 

Right now I have a process that first creates a CSV file on the SAS Linux server, then zips it and then sends it automatically to an e-mail receiver.

This process works and I'm satisfied about.

 

However, my company requires me to password protect the ZIP file ?

I know how this works on a SAS Windows server, but no idea how this works on UNIX / Linux.

 

Anybody ?

 

Thanks !!

Regards

Billy

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

"However, my company requires me to password protect the ZIP file ?" - this is because email is an unsafe, and unsecure method of transmitting data which I can only highly recommend you do not do.  Even password protecting the file will not help - the good old "if a hacker can hack and get the zip mail, they won't be able to intercept the next email with password" - scenario.  Its just a bad idea, and transfer might be corrupt etc.  Use an sftp site or secure web portal for data transfer (or reports), email is not the solution.

 

As for how you would add a password, you would need to be able to access the command line, and call the relevant program file directly, i.e. 7zip.exe with the parameters needed.

r_behata
Barite | Level 11

Have you tried this .

 

zipwpc -JP <pwd> <file_name>.zip <filename>

 

I am not sure if the zipwpc is a separate utility which has to be installed on Unix , but works fine for me.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1718 views
  • 0 likes
  • 3 in conversation