What is wrong with this program?

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

sjscher
Posts: 2
Joined: Fri Jan 23, 2015 7:19 pm

What is wrong with this program?

Postby sjscher » Fri Jan 23, 2015 7:28 pm

Can any see what is wrong with the following syntax? It runs, and it creates the variables qcombo & lcombo, but those variables only have missing values in them. Thanks for your help.

- Steve Scher

do if (lcode = 14) OR (lcode = 15) OR (lcode = 16).
compute lcombo = 1.
else.
compute lcombo = lcode.
end if.

do if (qcode = 14) OR (qcode = 15) OR (qcode = 16).
compute qcombo = 1.
else.
compute qcombo = qcode.
end if.
GerineL
Moderator
Posts: 1477
Joined: Tue Jun 10, 2008 4:50 pm

Re: What is wrong with this program?

Postby GerineL » Mon Jan 26, 2015 10:37 am

well first, execute is missing. Might that be the problem? maybe still pending?

end with:

Execute.

Who is online

Users browsing this forum: No registered users and 1 guest

cron