BookmarkSubscribeRSS Feed
Scottcom4
Calcite | Level 5
Hi Guys,

I am attempting to compress a series of files (the file extensions and names bare no relationship from file to file). I have attempted to use Systask and X command (I haven't used x before, so perhaps there is an idiosyncrasies of which I am not aware), with little success. I have used a variety of the suggestions from SUGI's and other internet resources and in the end all I can suggest is that I am doing something wrong. Could someone tell me what I am doing wrong?

Options XSync XSymbol OBS = MAX;

x ‘c:\progra~1\winzip\winzip32.exe –a –s"pass1234"
\\server\sas\transport\derived.zip
\\server\sas\data\derived\ae.sas7bdat
\\server\sas\data\derived\demog.sas7bdat’;

systask command "c:\progra~1\winzip\winzip32.exe –m
&outData.\OSTPIRecs_&ReportDate..zip
&outData.\osdebtexaminer&eom..xls
&outData.\osdebtdetailed&eom..xls
&outData.\osdebtinssummary&eom..xls
&outData.\osdebtmain5&eom..xls
&outData.\osdebtssummary&eom..xls
&outData.\Summary_Outstanding_Recoveries_Third_Party_Insurer_&eom..xls";
taskname = zip;
waitfor zip;
systask kill zip;

Regards,
Scott
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
This previous forum posting contains the X command that worked for me. I had the list of files to zip in a TXT file:
http://support.sas.com/forums/thread.jspa?messageID=8138Ὴ

I know there are other solutions using PKZIP. If you still have issues you might consider contacting SAS Tech Support for more help.

cynthia
Scottcom4
Calcite | Level 5
Thank you Cynthia you are a godsend.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 763 views
  • 0 likes
  • 2 in conversation