Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-01-2005, 02:37 PM
Patrice Bourdages
Guest
 
Posts: n/a
Default Silly problem with a Shell on Solaris 10

Hello to you all ....

There is something wrong with the code below and I can't pinpoint the
problem... The code seems to be looping correctly except that it "unzips"
only the first file encounterred and not the rest....

I have a table called "finmois.jdract" which contains the following a list
of tables stored within a ZIP file that looks like this :

NomFichier NoObs NomZip
CLTMAS 10000 CLTMASZ
CLMHDR 10434 CLMHDRZ
Etc.

The following piece of code simply browse within this table and proceed to
extract the ZIP name (NomZip) and launch a Unix Shell that is suppose to
redirect to a specific directory and lunch the "unzip"....

rsubmit;
data _null_;
** Let's see how many tables there is in the table "finmois.jdract"
**;
set finmois.jdract nobs = HowManyTables;
** From the first obs in "finmois.jdract" till the end, loop **;
do i = 1 to HowManyTables;
put i "/ " HowManyTables;
set finmois.jdract point = i;
** Grad the "NomZip" variable and store into a macro variable
called "QuelZip" **;
call symput("QuelZip", NomZip);
x "cd /data2/as400/download/ftpdev; unzip -j -o &QuelZip.";
if i = HowManyTables then stop;
end;
run;
endrsubmit;

I've been at this problem for a couple of days and I'm giving up...

I'm calling for the BUG-Busters of SAS-L to help me out ...

TIA, Patrice :-)
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Macro Variable Problem (or should I say, coder problem) toby dunn Newsgroup comp.soft-sys.sas 0 01-24-2007 07:38 PM
Re: SAS Problem nospam@HOWLES.COM (Howard Schreier Newsgroup comp.soft-sys.sas 0 05-03-2006 03:23 AM
Re: Silly problem with a Shell on Solaris 10 Patrice Bourdages Newsgroup comp.soft-sys.sas 0 08-01-2005 04:00 PM
Re: Silly problem with a Shell on Solaris 10 Dennis Diskin Newsgroup comp.soft-sys.sas 0 08-01-2005 02:46 PM
Re: Help on a grouping problem Sigurd Hermansen Newsgroup comp.soft-sys.sas 0 02-15-2005 11:49 PM



All times are GMT. The time now is 02:34 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.