Any idea why I get a syntax error here?
As far as I can tell this looks exactly like what is on page 611 of User's Guide I.
in the command line, I enter: run myprog xyz
where myprog.prg is the following
----------------------------
if %0 = "xyz"
!j =5
else
!j=10
endif
----------------------------
and this produces the error message: Syntax error in "IF %0="XYZ""
-cap
if statement - syntax error
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: if statement - syntax error
You're missing a then
Code: Select all
if %0 = "xyz" then
!j =5
else
!j=10
endif
Re: if statement - syntax error
ah, yes, blunder ...thanks very much!
Who is online
Users browsing this forum: No registered users and 1 guest
