BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have issue to run winZip to zip files by using rsubmit. Local run for winzip works. But it didn't work for rsumbit.

options comamid=tcp;
%let r_server = xxxxx 7551;
options remote= r_server;
signon r_server;
rsubmit;
Options noxwait noxsync;
filename foo pipe '"C:\Program Files\WinZip\WINZIP32.EXE" -a \\somepath\test.zip \\somepath\test.txt ';
data _null_;
infile foo; input;
put _infile_;
run;
endrsubmit;

No zip file generated.

Could you kindly help to solve this problem?

Thanks.
3 REPLIES 3
Patrick
Opal | Level 21
Is Winzip on the server under the path C:\Program Files\WinZip\WINZIP32.EXE?
I assume that's the problem here.
Regards
Patrick
deleted_user
Not applicable
yes,

The path is correct.

I also checked the program list in remote server. The winzip32.exe was launched. But no zip file generated and the winzip32.exe ran forever....

Did you know what is the issue?

Thanks.
Patrick
Opal | Level 21
Hi Liwe

Running your code on my local machine I encountered the following:
1. I got a prompt from WinZip requesting me to do something (click buttons)
2. I got an error if the zip directory didn't exist already.

I assume that WinZip on your server is also waiting for some user input (only you don't see the prompt...) - and then of course it's waiting and waiting and...

Have a look at the following paper: http://www.lexjansen.com/phuse/2006/cc/cc01.pdf
There is also a link in it with two macros for zipping and unzipping.

What's important: You need for command-line mode two add-ons from WinZip: WZZIP and WZUNZIP. They can be downloaded for free.
In your code you must then call WZZIP instead of WinZip - but that's all explained in the paper under the link I've sent you.

HTH
Patrick

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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