Forums: Troubleshooting and Problems
Hi,
The parameters for the CLI take the form -parameter="value", which is likely the direct cause of that message. This may be considered somewhat of a non-standard syntax (as opposed to --parameter="value" and -parameter value), so as a general note we're open to adapting the command line to meet the expectations of users - We just haven't received much feedback from anyone calling the Validator in this manner yet.
Additionally, you'll need a few more options to perform a define.xml validation. For your convenience, the modified version of your command should look something like the following:
START /B ../Java/jre6/bin/java -jar lib/validator-cli-1.0.jar -type="define" -source="P:\joris\opencdisc\define.xml" -config="F:\AMSI\general\Dms\CDISC\OpenCDISC\opencdisc-validator-1.0\opencdisc-validator\config\config-define-1.0.xml" -report:type="csv" -report="P:\joris\opencdisc\define.txt"
We'll be sure to update help documentation in the near future to reflect these changes. Please let us know if you experience any more issues.
Regards,
Tim
Hi,
I have a similar problem as the original poster. I am using the following command and getting the same error.
Command:
java -jar lib\validator-cli-1.1.jar -type="define" –source="C:\opencdisc\testdata\lb.xpt" –config="C:\opencdisc\config\config-sdtm-3.1.2.xml" –log="C:\openCDISC\log.xml" -report:type="html" -report=" C:\openCDISC\gen_report.html"
Error:
The parameter source requires a value in this context
java -jar validator-cli-1.2.1.jar -source="c:\Docume~\jm\work\926-01_SDTM_xpt\TR.xpt" -input=1 -config="C:\Docume~\jm\work\opencdisc-validator\config\config-sdtm-3.1.2.xml"
I'm suspecting this way of invoking the tool doesn't actually work. Has anyone ever seen it work this way? There are no examples with it. From the GUI it's brilliant, but I want SAS to call this bad boy without human intervention.
See http://www.opencdisc.org/forum/running-opencdisc-sas-batch
Hi,
I have just downloaded the USB version of the "opencdisc-validator-1.0" and I am trying to validate a define.xml file through the CLI using the statement below:
START /B ../Java/jre6/bin/java -jar lib/validator-cli-1.0.jar -source "P:\joris\opencdisc\define.xml" -config "F:\AMSI\general\Dms\CDISC\OpenCDISC\opencdisc-validator-1.0\opencdisc-validator\config\config-define-1.0.xml" -log "P:\joris\opencdisc\define.txt"
Unfortunately, I get the error below. The file that I am configuring in the -config option does really exist. So, I am not sure what I am doing wrong here. Could you please help?
--------------------------------------------------------------------------
OpenCDISC Validator Command Line Client
--------------------------------------------------------------------------
This program cannot run with the parameters you provided.
Use one of the -h|-help|-? switches for more information.
The value config\-config for -config does not point to a valid resource
Many thanks,
Joris