Forums: Define.xml
Hi Kairav. We just released a new version of the Validator (1.4). I would start by downloading that and then try this command line. For clarity i'm specifiying each param on its own line with spaces. You can remove those before running it. Note that -type is only valid when -task=validate. Specifying codelists is optional
java -Xms256m -Xmx1024m -jar lib\validator-cli-1.4.jar
-task =Generate
-source:type =SAS
-source ="C:\<yourdirectory>\*.xpt"
-config ="… \config\config-sdtm-3.1.2.xml"
-config:codelists ="..\config\examples\codelists-template.xls"
-output ="C:\<yourdirectory>\define.xml"
-output:overwrite =Yes
Hello,
I am running the Open CDISC Validation Checks with Command Line. It all runs perfectly fine for Validation Checks but not for Define.xml Generation. For the benefit of others, below are the scripts I am using.
For ADaM Validation:
unzip opencdisc-validator-1.3-bin.zip
java -jar "./opencdisc-validator/lib/validator-cli-1.3.jar" -type=Custom -task=validate -source="../03 ADaM/01 XPT/*.xpt" -config="./config-adam-1.0.xml" -report="../03 ADaM/metadata/OpenCDISCADaM10.xls" report:overwrite="yes"
------------------------------
For SDTM Validation:
unzip opencdisc-validator-1.3-bin.zip
java -jar "./opencdisc-validator/lib/validator-cli-1.3.jar" -type=SDTM -task=validate -source="../02 SDTM/01 XPT/*.xpt" -config="./config-sdtm-3.1.2.xml" -report="../02 SDTM/metadata/OpenCDISCSDTM312.xls" report:overwrite="yes"
------------------------------
For Define Validation:
unzip opencdisc-validator-1.3-bin.zip
java -jar "./opencdisc-validator/lib/validator-cli-1.3.jar" -type=Define -task=validate -source="../02 SDTM/01 XPT/*.xpt" -config="./config-define-1.0.xml" -report="../02 SDTM/metadata/OpenCDISCDEFINE10.xls" report:overwrite="yes"
------------------------------
Now I am trying to use the tool to Generate the Define.xml file
And the script I am using is as below:
unzip opencdisc-validator-1.3-bin.zip
java -jar "./opencdisc-validator/lib/validator-cli-1.3.jar" -task="Generate" type="Define" -source="../02 SDTM/01 XPT/ae.xpt" -source:type="SAS" -config="config-sdtm-3.1.2.xml" -output="define.xml" -output:overwrite="yes"
This generates a Blank Define.xml. Kindly provide the input parameters.
Thanks in Advance.
Regards
Kairav