@@ -0,0 +1,1217 @@
+package gov.nih.nci.caadapter.sdtm;%0Aimport gov.nih.nci.caadapter.ui.mapping.sdtm.RDSTransformer;%0Aimport gov.nih.nci.caadapter.common.util.FileUtil;%0A%0Aimport java.io.File;%0A%0A/**%0A * @author OWNER: Harsha Jayanna%0A * @author LAST UPDATE $Author: wangeug $%0A * @version Since caAdapter v4.0 revision%0A *          $Revision: 1.1 $%0A *          $Date: 2007-11-16 17:22:05 $%0A */%0Apublic class TestCSVAPITransform4RDS %7B%0A    public static void main(String%5B%5D args) throws Exception %7B%0A    %09if (args==null%7C%7Cargs.length%3C2)%0A    %09%7B%0A    %09%09System.out.println(%22Usage:mapFile%7CcsvDataFile%7C(Optonal)%22);%0A    %09%09System.exit(-1);%0A    %09%7D%0A    %09String workingDir=FileUtil.getWorkingDirPath();%0A    %09String mapFile=workingDir+File.separator+args%5B0%5D;%0A    %09String csvFile=workingDir+File.separator+args%5B1%5D;%0A    %09String outPut=workingDir+File.separator+%22output%22;%0A    %09if (args.length==3)%0A    %09%09outPut=args%5B2%5D;%0A       File outputFile=new File(outPut);%0A       if (!outputFile.exists())%0A    %09   outputFile.mkdir();%0A       System.out.println(%22mapping file:%22+mapFile);%0A       System.out.println(%22CSV data file:%22+csvFile);%0A       System.out.println(%22ouput directory:%22+outPut);%0A        new RDSTransformer().transformCSV(new File(mapFile), csvFile, outPut);%0A    %7D%0A%7D

create CSV_TO_RDS testing program