BookmarkSubscribeRSS Feed
ashasupriya
Obsidian | Level 7

Hi All - I have a situation and need help here.

I am new to SAS. we get federal sensitive information and want to achieve FIPS compliance. we receive this sensitive information in a text file which will be downloaded to our site. we then compress and encrypt the raw file that we receive using 7z file manager.

Now we want a sas program to directly read this compressed & encrypted raw file, decrypt the data and process it( cleanup and fix up of dirty data) and encrypt the cleaned up data.

how can this be achieved? we are looking for an option where it should be possible to run those sql encrypt and decrypt commands in the sas code itself?
Any help is highly appreciated.

 

2 REPLIES 2
Reeza
Super User

Instead of :


@ashasupriya wrote:

 

Now we want a sas program to directly read this compressed & encrypted raw file, decrypt the data and process it( cleanup and fix up of dirty data) and encrypt the cleaned up data.


Instead, can you set up a process to download the file (assuming SFTP retrieval) read it into SAS and then encrypt and password protect the SAS file. That makes it a lot easier to manage IMO.  I believe that SAS can connect and download from SFTP given that you have a later version and HTTPS enabled. I'm also guessing the files are likely always in the same structure/format making it easier to write a correct import program. 

 


@ashasupriya wrote:

Hi All - I have a situation and need help here.

I am new to SAS. we get federal sensitive information and want to achieve FIPS compliance. we receive this sensitive information in a text file which will be downloaded to our site. we then compress and encrypt the raw file that we receive using 7z file manager.

Now we want a sas program to directly read this compressed & encrypted raw file, decrypt the data and process it( cleanup and fix up of dirty data) and encrypt the cleaned up data.

how can this be achieved? we are looking for an option where it should be possible to run those sql encrypt and decrypt commands in the sas code itself?
Any help is highly appreciated.

 


 

ashasupriya
Obsidian | Level 7
I just want to give a status update. we decided to download the sensitive raw information using 7Z file manager. 7Z file manager has options to encrypt and compress the files which we will be placed in a secured location( this takes care of securing the download process). SAS developer will read read this compressed file using Filename foo zip ‘<zipped file path>’ member=”<Actual zip file name>”; does some clean up of data and fuzzy logic is applied. I have built a sql pass through script in sas to encrypt/decrypt the information dynamically. ( using AES-256 algorithm with symmetric key). I am working on making it further easy by implementing encryption and decryption in a function and opening/closing of keys using stored procedure. but this part is still work in progress. I appreciate if anyone can help me with that.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1500 views
  • 5 likes
  • 2 in conversation