Attached is the Java Program which when executed after proper setup can extract the previous versions information for the file or dataset into text file.
Below steps provide guidance in setting up the environment to excute attached Java Program.
1. Download the latest SDD API from SAS Drug Development 3.5 Hot Fixes
2. We used Eclipse editor to develop and execute this code. You can download latest version of Eclipse Classic from Eclipse website.
3. Download JDK from Oracle website.
4. Import the Java program into new Project and add reference to the SDD Java API jar files and JDK
5. Update the below code lines in Java program
String aURLStr= "https://<SDDINSTANCE>.sas.com/sddremote"; // REPLACE <SDDINSTANCE> WITH YOUR SDD INSTANCE NAME;
String aUser= ""; // ENTER YOUR USERNAME;
String aPwd = ""; // ENTER YOUR PASSWORD;
String SDDPath="/SDD/Training/trainer/data/demo.sas7bdat"; // REPLACE IT WITH VERSIONED FILE FULLY QUALIFIED PATH;
Attached Java program can also be convereted into jar file and excuted.