Lisa, when you rem out that java line, nothing happens because that is what 
runs the actual import of the data, the dataimport.bat sets up the environment 
variables needed to run java and call the dataimport class and then takes all 
of the parameters you specify on the command line and runs java, calls that 
class and passes the parameters to it.

From: Action Request System discussion list(ARSList) 
[mailto:arslist@ARSLIST.ORG] On Behalf Of Kemes, Lisa
Sent: Monday, January 30, 2012 3:30 PM
To: arslist@ARSLIST.ORG
Subject: Dataimport.bat

**
I'm trying to get our import working (we used to use the arimport.exe tool.  I 
really miss that tool).  :(

We are on ARS 7.6.04 SP2.  Can anyone assist me?

Right now, just trying to kick off an import at the cmd line:

C:\Program Files\BMC Software\ARSystem\dataimporttool> dataimport.bat -x 
usy90ap421.us.tycoelectronics.com -a 5213 -u username -p password  -l 
"c:\ARProcesses\Log
s\JobImport.log"  -M "C:\ARProcesses\Importmap\JobImport.armx" -o 
"C:\temp\TWS_Jobs.csv"

But nothing happens, no log file either.

My dataimport.bat file looks like.  I put a REM before the java line (after the 
Launch the Import Line) because I'm launching the import from a cmd file) Is 
this correct?

set CUR_DIR=%~dp0

rem Save the environment variables we are changing so we can reset them
set _CLASSPATH=%CLASSPATH%
set _PATH=%PATH%

rem -- Set up the environment variables.
set APIDROP=.\plugins\com.bmc.arsys.studio.api_7.6.04\lib
if not exist "%JAVA_HOME%" set JAVA_HOME=jdkPath
set PATH=%JAVA_HOME%\bin;%PATH%;%APIDROP%

rem Set the classpath to include all the required jar files
set 
CLASSPATH=%CLASSPATH%;%CUR_DIR%\plugins\com.bmc.arsys.studio.api_7.6.4.build002\lib\arapiext7604_build002.jar;%CUR_DIR%\plugins\com.bmc.arsys.studio.api_7.6.4.build002\lib\arapi7604_build002.jar;%CUR_DIR%\plugins\com.bmc.arsys.studio.api_7.6.4.build002\lib\log4j-1.2.14.jar;%CUR_DIR%\plugins\com.bmc.arsys.studio.api_7.6.4.build002\lib\activation.jar;

rem Launch the import
rem java -Xms64m -Xmx512m com.bmc.arsys.apiext.data.DataImport %*

rem Reset the environment
set CLASSPATH=%_CLASSPATH%
set PATH=%_PATH%

Lisa Kemes
AR System Developer
TEIS - USA
+1 717 810 2408 tel
+1 717 602 9460 mobile
lisa.ke...@te.com<mailto:lisa.ke...@te.com>
100 Amp Drive
Harrisburg, PA 17112

[http://www.te.com/images/socialmedia/smallTElogo.gif]<http://www.te.com/>

www.te.com<http://www.te.com/>

[http://www.te.com/images/socialmedia/twitter.png]<http://twitter.com/teconnectivity>[http://www.te.com/images/socialmedia/facebook.png]<http://www.facebook.com/teconnectivity>[http://www.te.com/images/socialmedia/flickr.png]<http://www.flickr.com/photos/teconnectivity/>[http://www.te.com/images/socialmedia/linkedin.png]<http://www.linkedin.com/groups?gid=1591657>[http://www.te.com/images/socialmedia/youtube.png]<http://www.youtube.com/teconnectivity>

_attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

Reply via email to