Character Client

gtmsb

Member
Currently we are using the GUI client and as i need to run MRP (23.1 or 23.2) automatically. I need to have Character client instead of GUI. I had installed the character client. and what should i do next? Please advise.
 
do you need to run it in batch?
then you need 36.14.1 to create the batch-id
run 23.1 and enter the output and the batch-id
then use 36.14.3 to decide the sequence in which this batch should run if there's more then one program in this batch-id.
In Crontab you define when the batch should start and the sequence ( daily, weekly, at what time etc.)

there is also a possiblity that if the programm you want to put in batch, but which has dates in the parameters, to change these parameters, so that the date will also move daily.
 
I have a MRP batch ID running via scheduled tasks. You need to create a batch file and an input file.

batch file should look like this:

c:
cd\MFGbatch
e:\dlc8\bin\prowin32.exe -db <dbname> -ld qaddb -H hostname -S servicename -N TCP -b -d mdy -yy 1920 -trig TRIGGERS -pf c:\MFGbatch\livemrp.pf -ini c:\MFGbatch\batch.svg -p c:\MFGbatch\batchnet.p > c:\MFGbatch\x999net.err

livemrp.pf contains:
-db gui -ld qadgui -H hostname -S service name -N TCP -b -d mdy -yy 1920
-cpstream iso8859-1
-cpinternal iso8859-1
-cprcodein iso8859-1
-cpcoll basic

batch.svg is same as progress.svg except in the PROPATH, point to your MFG Pro character compiled set (depends on your version, ex. MFGNTeB2\USCHARCL).

batchnet.p contains the following lines:
INPUT from c:\mfgbatch\batchnet.inp.
OUTPUT to c:\mfgbatch\batchnet.out.
PAUSE 0 BEFORE-HIDE.
RUN MF.P.
INPUT CLOSE.
OUTPUT CLOSE.

You need to compile batchnet.p, save the .r on the same directory as your batch file and input file. On the scheduled task, just create a schedule for the batch file. This will run the character version of MFG Pro, output the screen displays in batchnet.out and any errors in x999net.err. If during the execution of the batch you noticed it is hanging, check the file size of batchnet.out. If its getting bigger, then some errors on the character code is causing it to run in loop. You need to correct that.

Hope this helps.
 
Back
Top