auto batch job in mfg/pro

etiennesun

New Member
Hello,

does anybody know how to setup an auto batch job for 3.4.2 in mfg/pro and eff date should be default to today.
I did a program but it could't be run in GUI client.

INPUT FROM test1.in.
OUTPUT TO c:\resulttran.prn.
RUN mf.p.
INPUT CLOSE.
OUTPUT CLOSE.


"mfg" "password"
iclotr01.p
- - - - - - - - "autotrans" "Lsam" "ahm" "lsam" "pur" "?" "yes" "yes"
"c:\test.prn"
.
.
y

tks.
 

etiennesun

New Member
tks for your quick reply,I am trying to inventory movement automaticlly use 3.4.2 every night and the lsam is site name...
pls advise me how to do it.
 
Everything looks fine.

what are you seeing in .prn?any error? send us the details.
you need adding extra instead of 'y' you dont question to exit in GUI.
 

montamig

New Member
Only missing the variable batchrun:

INPUT FROM test1.in.
OUTPUT TO c:\resulttran.prn.
batchrun = yes.
RUN mf.p.
batchrun = no.
INPUT CLOSE.
OUTPUT CLOSE.

Greetings​
 

etiennesun

New Member
the error message is "Cannot execute ENABLE statement when input stream is not the screen. (4018)"

i also add this program to start.bat that show the error in picture on attachement.

@echo off
REM Script to start multi-user session of MFG/PRO

REM tokens:
REM &DLC = Progress Directory
REM &CLIENT-DB-CONNECT = command line to connect to each db in dbset

SET DLC=\\10.71.128.103\dlc91e\
SET PATH=%PATH%;%DLC%\bin
SET PROMSGS=%DLC%\promsgs
SET PROTERMCAP=%DLC%\protermcap
SET PROPATH=.,\\10.71.128.103\guicli,\\10.71.128.103\guicli\bbi,\\10.71.128.103\images.pl

REM
REM Start MFG/PRO.
REM

%DLC%\bin\prowin32 -c 30 -d mdy -yy 1920 -Bt 350 -D 100 -mmax 3000 -nb 200 -s 63 -noshvarfix -p v1batch.p -pf c:\qad_client\mtl_test.pf -ininame c:\qad_client\progress_mtl_test.svg
 

Attachments

  • v1batch.p
    137 bytes · Views: 43
  • test1.TXT
    142 bytes · Views: 34
  • untitled.JPG
    untitled.JPG
    18.8 KB · Views: 40

gtmsb

Member
Good morning. I did try out to run GUI- automatically running MRP but i couldn't make it. As per MFGPRO consultant, it's better to run in the CHAR mode. As I tried it in CHAR mode, everything goes smooth sailing.
 

AD_Chicago

New Member
We are new to GUI environment and trying to run a batch job. My question is how to run in "CHAR" mode? What command, parameter, would do it?

Thanks.
 
SET PROPATH=.,\\10.71.128.103\chrcli,\\10.71.128.103\chrcli\bbi,\\10.71.128.103\images.pl

REM
REM Start MFG/PRO.
REM

%DLC%\bin\progres -c 30 -d mdy -yy 1920 -Bt 350 -D 100 -mmax 3000 -nb 200 -s 63 -noshvarfix -p v1batch.p -pf c:\qad_client\mtl_test.pf -ininame c:\qad_client\progress_mtl_test.vga
 

gtmsb

Member
I am running on Windows platform, CHAR mode, eb version, progress 9.1c
a) Create BatchID (in 36.14.1 Batch ID Maint)
Batch ID: <any name>
Permantent: yes
Piriority: 0


b) Run 23.1 Net Change Materials Plan
output: MRP
BatchID: MRP


c) the (b) will shown in Batch Request Detail Maintenance (36.14.3)


d) Create a batch file (*.bat) with the following information (mine is to run the 23.1 Net Change Materials Plan)
"C:\app\dlc\91\bin\_progres.exe" -b -pf c:\app\qad\USCHRCL\gtmnew.pf -ininame c:\app\qad\USCHRCL\GTMNEW.CHR <c:\app\mrp\mrp.txt> c:\app\mrp\output.txt

Notes:
_progress.exe - to run the CHAR mode
prowin32.exe- to run the GUI mode


e) create the text file (MRP.txt)
"userid" "password" //key in the userid & password
"mgbatch.p" //Call the mgbatch program
"MRP" //batchID created in 36.14.1
. //Escape
. //Escape
"Y" //Log off confirmation

Note:
I note that in CHAR mode you were asked "Please confirm exit Y/N" and this message is not shown in GUI mode.

f) Use Sceduled Task to run the batch file (set the day and time you required)
 
Top