Originally posted by: swatiroi
still facing the same issue...compiled map and the log file location are on the same machine.
Here is code written to execute map using java api -
map = new MMap("F:\\map\\MyMap.mmc");
MCard inputCard = map.getInputCardObject(1);
MAdapter fileInputAdapter = inputCard.getAdapter();
fileInputAdapter.setTextProperty(MConstants.MPIP_ADAPTER_COMMANDLINE,0,"F:\\data\\mydata.dat");
map.setTextProperty(MConstants.MPIP_MAP_AUDIT_DIRECTORY_CUSTOM_VALUE, 0, "F:\\logs");
map.setTextProperty(MConstants.MPIP_MAP_AUDIT_FILENAME_CUSTOM_VALUE, 0, "mymap.log");
map.setTextProperty(MConstants.MPIP_MAP_TRACE_DIRECTORY_CUSTOM_VALUE, 0, "F:\\logs");
map.setTextProperty(MConstants.MPIP_MAP_TRACE_FILENAME_CUSTOM_VALUE, 0, "mymaptrace.mtr");
map.run();
iRC = map.getIntegerProperty(MConstants.MPIP_OBJECT_ERROR_CODE, 0);
String szMsg = map.getTextProperty(MConstants.MPIP_OBJECT_ERROR_MSG, 0);
Any inputs to resolve the issue or anything am missing or doing wrong?
-swati
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender