OE 10.2BSP05 Windows 7 64bit
Hi All,
I'm looking at creating an incremental .df file programatically. I Started to use a .bat file, but my knowledge isnt great but the benefit is that you can use dump_inc.p easily; which i have done.
But for better understanding and manageability i've re-wrote the script in OE. One issue I have encountered is the call to dump_inc.p
Mine it currently:
My original bat was:
Now the output .df file is not being created through OE. It's as if the variables aren't being passed.
In batch files, it does this magically but i assume with OE i need to do something special. I'm (as always) missing the something special.
Any clues would be appreciated.
Thanks
Hi All,
I'm looking at creating an incremental .df file programatically. I Started to use a .bat file, but my knowledge isnt great but the benefit is that you can use dump_inc.p easily; which i have done.
But for better understanding and manageability i've re-wrote the script in OE. One issue I have encountered is the call to dump_inc.p
Mine it currently:
Code:
IF ipiDBStat = 1
THEN DO:
SET DUMP_INC_DFFILE=cFileLoc + "incremental_" + cSrcDBName + "_to_" + cTgtDBName + "_" + cRelSfx + ".df".
END.
ELSE IF ipiDBStat = 2
THEN DO:
SET DUMP_INC_DFFILE=cFileLoc + "incremental_" + cSrcDBName + "_to_" + cTgtDBName + "_" + cRelSfx + "_2.df".
END.
SET DUMP_INC_CODEPAGE="1252".
SET DUMP_INC_INDEXMODE="active".
SET DUMP_INC_RENAMEFILE= cFileLoc + "renamefile.rf".
SET DUMP_INC_DEBUG="0".
OS-COMMAND SILENT VALUE(cDLC + "/bin/_progres -b -db " + cSrcDB + " -ld 1 -db " + cTgtDB + " -ld 2 -p prodict/dump_inc.p > " + cTempLog).
My original bat was:
Code:
if %~1 == 1 (set DUMP_INC_DFFILE=%FILE_LOC%incremental_%DB1_NAME%_to_%DB2_NAME%_%REL_SFX%.df)
if %~1 == 2 (set DUMP_INC_DFFILE=%FILE_LOC%incremental_%DB1_NAME%_to_%DB2_NAME%_%REL_SFX%_2.df)
set DUMP_INC_CODEPAGE=1252
set DUMP_INC_INDEXMODE=active
set DUMP_INC_RENAMEFILE=%FILE_LOC%renamefile.rf
set DUMP_INC_DEBUG=0
%DLC_VAL%/bin/_progres -b %DB1% -ld 1 %DB2% -ld 2 -p prodict/dump_inc.p > %FILE_LOC%dump_bat_inc.log.
Now the output .df file is not being created through OE. It's as if the variables aren't being passed.
In batch files, it does this magically but i assume with OE i need to do something special. I'm (as always) missing the something special.
Any clues would be appreciated.
Thanks