BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ANLYNG
Pyrite | Level 9

Hi,

 

I am trying to unzip a bundle of zip files in SAS DI/SAS 9.4. I use the name of files as input to the loop and below is my code for the job which should run in the loop. However it does not work. It Unzip the first file and the process do not stop and do not unzip the other files. So somehow the loop is not pushing forward from the first value of name.

 

Can you help?

 

Here is my code:

 

options noxsync noxwait;
data _null_;
%put &name.;
X """C:\Program Files\7-Zip\7z.exe"" e ""E:\SAS\Mydata\&name."" -oE:\SAS\MyData\Data\";
run;

1 ACCEPTED SOLUTION
6 REPLIES 6
ANLYNG
Pyrite | Level 9

The loop is in the outer job in sas di. The code above is from the inder job and has  name parameters which should run it in a loop. 

ANLYNG
Pyrite | Level 9


H

ANLYNG
Pyrite | Level 9

I managed to get things working by including everything in one job. Thank you for your contribution.

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 25. 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
  • 6 replies
  • 1286 views
  • 3 likes
  • 2 in conversation