End of File: Expected Endo

I was entering the below statements on Commands. But when I entered "do while i <= rows(ylist);  ", an error message of End of File: Expected Endo came out. I don't know the reason. Please let me know it. Thank you.  

i=1;

do while i <= rows(ylist);
   "";"Processing ";;$ylist[i,1];;ylist[i,2];
   ystr="" $+ ylist[i,1] $+ "." $+ iext;
   tcode=ylist[i,2];

   if tcode .== 0;
      "Skipping";
      goto bottom;
   endif;

   ydata=udatain(ystr,missc,dnobs);
   ytran=transx(ydata,tcode);
..............(continued)

1 Answer

0

The do while loop needs to end with an endo statement like this:

i = 1;
do while i <= 10;
   i = i + 1;
   print "i = " i;
endo;

The error "End of File: Expected Endo" means that GAUSS could not find an endo statement to close the do while before it found the end of your file.

aptech

1,773

Your Answer

1 Answer

0

The do while loop needs to end with an endo statement like this:

i = 1;
do while i <= 10;
   i = i + 1;
   print "i = " i;
endo;

The error "End of File: Expected Endo" means that GAUSS could not find an endo statement to close the do while before it found the end of your file.


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.