How to cim the data under Linux Environment

ivyhui0527

New Member
Below is my example to cim data under window environment, but error occurs when perform the exact cim method under Linux environment. The error msg as followed:

/home/mfg/p05416_Untitled4.ped Shared variable global_user_lang_dir has not yet
been created. (392)


{mfdeclre.i}

OUTPUT TO VALUE(ifile).
PUT '"PO111"' SKIP.
PUT '-' SKIP.
PUT '"3"' SKIP.
PUT '"1"' SPACE '- - - - - -' SPACE '"NEMJBOND"' SKIP.
PUT '.' SKIP.
PUT '.' SKIP.
PUT '.' SKIP.
PUT '.' SKIP.
OUTPUT CLOSE.

RUN LOAD_CIM.IP.

/*========================================================*/
/* Load_CIM.IP */
/*========================================================*/

PROCEDURE LOAD_CIM.IP:
DEFINE VAR oldbatchrun LIKE batchrun.

LOAD_file = ifile.
LOAD_out = ofile.

oldbatchrun = batchrun.
batchrun = YES.

INPUT FROM VALUE (LOAD_file).
OUTPUT TO VALUE (LOAD_out) APPEND.

{gprun.i ""poporc.p""}
OUTPUT CLOSE.
INPUT CLOSE.
batchrun = oldbatchrun.

END PROCEDURE.


Do i need to change anythg under linux environment? Thanks in advance.


 

oldemanw

Member
The error is caused by "gprun.i", which expects the variable to be set. Normally it gets set in mf1a.p or mfw*.p programs.
You can work around by adding the variable and then assign global_user_lang_dir = "us".
 
Top