run DXL from Batch mode *error*

Hello,

 

I am trying to automate a script it runs fine from the GUI, but when I attempt to run it from the commandline in batch mode I get the following error meassge...any help would be appreciated.

 

-E- DXL: <utils/copyops.inc:429> incorrectly concatenated tokens
Included from:
        <C:\Users\james.ellis\Desktop\Automated Reporting\automatedreporting.dxl
:6>
-E- DXL: <utils/copyops.inc:429> undeclared variable (ModifyRangedAttrType_)
Included from:
        <C:\Users\james.ellis\Desktop\Automated Reporting\automatedreporting.dxl
:6>
-I- DXL: All done. Errors reported: 2. Warnings reported: 0.

Press return to exit DOORS.


EHcnck - Wed Jun 19 10:41:15 EDT 2013

Re: run DXL from Batch mode *error*
BillTidy - Wed Jun 19 13:15:28 EDT 2013

Difficult to tell without any code but is your GUI supplying you with attributes which you're not picking up when in batch mode?

Re: run DXL from Batch mode *error*
llandale - Wed Jun 19 13:25:29 EDT 2013

BatchMode does not automatically include many standard include files that deal with GUI, since there is no GUI in batchmode.  In this case I cannot find the include file that has function "ModifyRangedAttrType_" defined; no doubt it is encrypted.

Now I'm supposing that your batch program does not in fact actually modify a ranged value of an attrtype.  So, you can simply stub the missing function, which I suspect looks like this:

void ModifyRangedAttrType_(AttrType at, string Name, AttrBaseType abt, string sMin, string sMax, string Report){}

If we cannot make that work, there will be three other unpleasant options. [1] do not use copyops.inc and write your own copy function [2] find the offending #include file via trial and error.  [3] make your own copy of "copyops.inc" and comment out that line of code. 

-Loue

Re: run DXL from Batch mode *error*
Antonio_CC - Mon Jan 29 11:01:07 EST 2018

Hello EHcnck,

 

could you resolve the issue? 

I think that I'm facing the same problem.

 

Regards,

Antonio.

Re: run DXL from Batch mode *error*
EHcnck - Mon Jan 29 11:34:28 EST 2018

Antonio_CC - Mon Jan 29 11:01:07 EST 2018

Hello EHcnck,

 

could you resolve the issue? 

I think that I'm facing the same problem.

 

Regards,

Antonio.

I had to use -dxl since I was working with data that need to be visible, such as views, etc.

 

https://www.ibm.com/support/knowledgecenter/en/SSYQBZ_9.6.1/com.ibm.doors.configuring.doc/topics/c_clientcommandswitches.html

 

 

-dxl (-D) dxl_string or "#include <dxl_program>" DXL that runs immediately after Rational DOORS starts. The parameter is either:
  • A DXL code fragment
  • #include statement that specifies the path to a DXL program

Re: run DXL from Batch mode *error*
dylandrush - Wed Jun 13 11:02:40 EDT 2018

This is a late response and most likely no longer relevant, but I assume you are doing a:
#include<lib\dxl\utils\copyops.inc> somewhere.


Before you include copyops.inc, you need to include storedGlobals.inc

You might end up with something like:

string dHome = (string getenv("DOORSHOME"))
string copyOpsInc = dHome "lib\\dxl\\utils\\copyops.inc"
string storedGlobalsInc = dHome "lib\\dxl\\standard\\column\\storedGlobals.inc"
eval_("#include <"storedGlobalsInc">
#include <"copyOpsInc">
#include <"Whatever your script is">)
exit_()

You can then do batch mode with that.