LOOP

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

LOOP

Dmitrij-2
HI,

I have the following problem:

I have a variable  "course" its CASE VALUE goes from 1 to 99, but some
values are not covered  within the data. I would like to create FREQUENCIES
of another variable(i.e. "test"). These FREQUENCIES should only contain
cases, which have the value 1 for "course", then those with the value 2 for
"course" and so on.......

I know it does not work with LOOP and DO IF.

Does somebody know another way to solve it?

Thank,
Dmitrij!

P.S:
What I wont in Pseodocode:

do loop while (x=(max(CASE VALUE)from Kurs)-1)
     compute x = x+1
     do if(kurs=x)
          FREQUENCIES
             VARIABLES=e1x1x1
               /BARCHART  FREQ
               /ORDER=  ANALYSIS
     end if
end while
Reply | Threaded
Open this post in threaded view
|

Re: LOOP

Maguin, Eugene
Dmitrij,

Look at the Split files command. I think this is what you need.

Gene Maguin