Dear list members,

 

I encounter a problem when I try to run a script that contains several (i.e. 4) loops.

 

The structure is quite simple like

 

loop i=1..cols(matrix_x) 

                do some stuff

                               loop k=1..cols(matrix_y)

                                               do some other stuff

                                                               loop t=start..end

                                                                              loop j=1..5

                                                                                              estimate model

                                                                              endloop

                                                               endloop

                                               do some further stuff

                               endloop

endloop

 

 

If necessary, I am happy to provide more details on the script.

 

Whenever I try to run that script, the script output prints the code and stops without an error message.

 

After this occured, not even the simplest operation like scalar s = 1+1 runs correctly.

The only thing that happens is that the script output occurs, which shows the code but does not come up with the results.

 

The strange thing is, the loop structures works without a problem when I use the three “inner” loops.

 

                               loop k=1..cols(matrix_y)

                                               do some other stuff

                                                               loop t=start..end

                                                                              loop j=1..5

                                                                                              estimate model

                                                                              endloop

                                                               endloop

                                               do some further stuff

                               endloop

 

The fourth loop is only intended to setup a different matrix in each loop  and at the end  concatenates some vectors to the created matrix.

 

I use Gretl 1.9.92 win32.

CPU: Intel Core i7, 2.8 GHz

RAM 8 GB

Windows (8.1 pro) is 64-bit

 

 

Does anyone have a clue what went wrong?

 

Thanks in advance,

 

Jan