KB Article #50856
Problem with end of transfer batch execution
How to use xpr.bat for end of Transfer procedure .
Resolution
In the application object used for receiving transfers ; under the option "General Information" you can find "End of Transfer Processing".
This could be used for the execution of customized batch to route files to other destination site .
( click on HELP tab on the application object window to more about the fields under "End of Transfer Processing " )
In the directory "<Interpel Installation>\run_time\etc" you can find 'xpr.bat' .
Open this file in any editor and search and modify the following line :
REM skip trace output
goto end
as
REM skip trace output
REM goto end
This will activate the traces for transfer.
Now open the Application object window you normally use to receive transfers in Interpel . Type 'xpr.bat' in the field 'command line' under the section "End of Transfer Processing" mentioned above.
Now Receive a transfer in Interpel .
A file 'xprXXXX.out' in the "<Interpel Installation>\run_time\tmp" directory ( where XXXX is the local transfer identifier ) will be created with this.
This .out file contains the parameters and state of the last transfer .
These parameters can be used within this script or your customized script as conditionals for execution of new transfers via 'peltrans'.
Arguments can also be passed to the xpr.bat in the command line as :
Xpr.bat option1 "option 2"
Which can be used later in this batch.