BookmarkSubscribeRSS Feed
sasnjm
SAS Employee

The archive function within SDD creates separate files for each version of an object in the directory being archived.

If you archive a directory, a jar file is created containing all of the files in that directory. 
That jar file is written to the archives folder in the SDD instance.

If there are any versioned files in the directory, they will appear in the archive with an extension of "SDDVerxofx".

Here's an example:

  1. demo.sas7bdat_SDDVer1of2.sas7bdat
  2. demo.sas7bdat_SDDVer2of2.sas7bdat

If saving the .jar file to a Windows machine, the extension will need to be renamed from .jar to .zip

  Prior versions of a files can also be retrieved using the Remote API.

1 REPLY 1
Sandeep_sas
SAS Employee

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

Discussion stats
  • 1 reply
  • 937 views
  • 0 likes
  • 2 in conversation