Hello All,
I'm using SAS 9.3, i have a situation like
1. To generate CSV for the Data and generate password protected ZIP of the CSV.
2. Get the properties of ZIP file like
Filename of data file
Data file creation date
Uncompressed data file size in bytes
Number of columns in data file (if applicable)
Number of rows in data file, including header row (if applicable)
including the original file datetime stamps, file size, and compressed size.
Kindly, help me out with the situation. I could find the code for 9.4, however i cant find the code for 9.3
Thanks,
Pavan.Ch
There isn't code SAS v9.3. If you are sending a datafile, use a secure portal or SFTP. Zip file via email is not really acceptable in this day and age, nor is taking file properties from the OS which can easily be manipulated.
Hi RW9,
We have a client requirement to send it that way.
Then bill them the time each time to manual create a zip file and get the properties. If they ask you to program whilst bouncing up and down and reciting the alphabet backwards...
Actually to say it isn't possible is a bit far, you would need to call the zipping program from the command line, e.g. X call or call system. And of course have the privilidges to access command line.
You do not need to "get" the properties of the csv file, you already have them in the data step that writes the csv.
The other values are best determined by using operating system commands.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.