CIM Process

alex10

New Member
Hello to all,

I want to create a program that do "Issues - Unplanned", "Receipts - Unplanned" based on a flat file. I want to use a CIM for that, but my question is how can i validate that each transaction on the flat file was applied? In case that one transaction fail for any kind of error i need to stop processing the flat file.

Thanks in advance

hp ux 13.13
progress 10.2a
mfg/pro 7.3
 

mosfin

Member
you should write a program, following these steps:
1. create the CIM text file, without the @@batchload and @@end lines but
with additional last line with "." (dot) that simply functions as "Exit"
2. run the CIM in batch mode(to avoid interactive error message popups)
something like this:
def var oldbat as log no-undo.
oldbat=batchrun.
batchrun=yes.
input from "cimfile".
output to "logfile".
{gprun.i ""mfgprog.p""}
output close.
input close.

3. check the log file for string "ERROR" or "**..." which indicate an error
4. if was error, abort
 

kaushik

New Member
dear mosfin,
i m new in mfg/pro can u tell why n where CIM is used .
also wht is batch id .
whr i can learn to use them .
i want from basic .

thanks
 

jchellap

Member
CIM is a type of file which has the extension .CIM.

If you want to upload a data to a specific screen / table into the database then you can use CIM file.

for e.g. There are 2 databases (x1 - database, x2 database) used in mfgpro in different units/locations.

If you want to load a pt_mstr data (item master data) of x1 database to x2 database pt_mstr, then
you can create a CIM file of x1 database pt_mstr data and it can be loaded into x2 database pt_mstr.

Does that make sense ?
 

kaushik

New Member
def var oldbat as log no-undo.
oldbat=batchrun.
Dear chellap,
thnak you very much . u given a clear concepts of CIM.
ok now i want to implement . here below is a programme example on cim from mosfin.
can u explain me some lines.
/********************************************/
def var oldbat as log no-undo. /* wht is log type data */
oldbat=batchrun.
batchrun=yes.
input from "cimfile". /* how we r using this cimfile ,will he hav to create cimfile and loggile i dont know exactly */
output to "logfile".
{gprun.i ""mfgprog.p""}
output close.
input close.

kindly also tell me about batch id .
my motto was to simply know to use cim by an example .if u hav any other example pls give.

thank u very much
 
Top