Hello everyone,

How can I write this faster?

Code:
svy: prop rech if form1==2 & gan1==14
svy: prop rech if form1==2 & gan1==12
svy: prop rech if form1==2 & gan1==8
svy: prop rech if form1==2 & gan1==6
svy: prop rech if form1==2 & gan1==5
svy: prop rech if form1==2 & gan1==4
svy: prop rech if form1==2 & gan1==3
svy: prop rech if form1==2 & gan1==2
svy: prop rech if form1==2 & gan1==1

svy: prop rech if form1==3 & gan1==14
svy: prop rech if form1==3 & gan1==12
svy: prop rech if form1==3 & gan1==8
svy: prop rech if form1==3 & gan1==6
svy: prop rech if form1==3 & gan1==5
svy: prop rech if form1==3 & gan1==4
svy: prop rech if form1==3 & gan1==3
svy: prop rech if form1==3 & gan1==2
svy: prop rech if form1==3 & gan1==1


svy: prop rech if form1==1 & gan1==14
svy: prop rech if form1==1 & gan1==12
svy: prop rech if form1==1 & gan1==8
svy: prop rech if form1==1 & gan1==6
svy: prop rech if form1==1 & gan1==5
svy: prop rech if form1==1 & gan1==4
svy: prop rech if form1==1 & gan1==3
svy: prop rech if form1==1 & gan1==2
svy: prop rech if form1==1 & gan1==1
Any suggestions please? Is it possible to produce a loop, despite the fact that the "gan1" variable numerical values do not follow each other?

Thank you so much.

Michael