GRTM on a cluster machine

In my attempt to run a  program (mgarch_12_lags_oil.g.gcg) as a job on a cluster machine that has GRTM  installed, I find the following error in output file:

 

/home/sajjadur/Oil_Stock/mgarch_12_lags_oil.g(6) : error G0014 : 'stval_oil_stock.prn' : File not found

Program execute failed

 

How I can embed the data file in mgarch_12_lags_oil.g.gcg so that the program does not look for the data file elsewhere.

 

Here are the codes in mgarch_12_lags_oil.g.gcg:

 

new;

totalobs=512;           n=2;      lags=12;         printall=1;  lagsla=2;

 

 

starfile="stval_oil_stock.prn";

load guess0[65,1] =^starfile;   

 

datafile="data_new.txt";

 

library maxlik,pgraph;

graphset;

#include maxlik.ext;

 

#include /home/sajjadur/Oil_Stock/strucgarchm/prc/GLOBAL_no_scale.PRC;

#include /home/sajjadur/Oil_Stock/strucgarchm/prc/INDATA.PRC;

#include /home/sajjadur/Oil_Stock/strucgarchm/prc/MGARCHM2_two_variables.prc;

_max_MaxIters=1000;

{e,p,t,x,y} = indata(totalobs,n,lags);

data = y~x;

{guess,l,gradi,cov,retcode} = maxlik(data,0,&nloglike,guess0);

format/m1/rd 20,15;

print guess;

call maxprt(guess,l,gradi,cov,retcode);

end;

 

Thanks.

 

Sincerely,

Sajjadur.

 

 

Your Answer


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.