BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
anilgvdbm
Quartz | Level 8

i have one question to all  i got one sas dataset like datasetname.sd2 extension format when i click open its opening in SAS entreprise. but i dont know how to import into sas 9.3. please give me an solution for that.

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

libname test v6 "path where the file with extension.sd2 is located";

This is done to tell sas that the data file we are trying to access is a v6 datafile.

We can convert the v6 datafile into version 9.3 by

data want;

     set test.dataset;

run;

we can check if the newly created datafile is changed to the current version of sas or not (.sas7bdat) by.

proc contents data=want;

run;

Thanks,

jagadish

Thanks,
Jag

View solution in original post

5 REPLIES 5
Jagadishkatam
Amethyst | Level 16

libname test v6 "path where the file with extension.sd2 is located";

This is done to tell sas that the data file we are trying to access is a v6 datafile.

We can convert the v6 datafile into version 9.3 by

data want;

     set test.dataset;

run;

we can check if the newly created datafile is changed to the current version of sas or not (.sas7bdat) by.

proc contents data=want;

run;

Thanks,

jagadish

Thanks,
Jag
anilgvdbm
Quartz | Level 8

Dear Sir ,

I am getting this error

"    libname test v6 'D:\District level data\DHS-India\NFHS 1992-93\All-India\HH

  ! raw\IAHH21FL.sd2' ;

ERROR: Library TEST is not in a valid format for access method RANDOM.

ERROR: Error in the LIBNAME statement.  """

Please help in this.

Thanks

Anil

Jagadishkatam
Amethyst | Level 16

Please try

libname test v6 'D:\District level data\DHS-India\NFHS 1992-93\All-India\HH

  ! raw' ;

just give the folder path, not the file path. Also only the folder path should be in quotes not the libname statement

Thanks

jagadish

Thanks,
Jag
anilgvdbm
Quartz | Level 8

dear sir ,

Thank you very much for your help.

Thanks

ANil

AnnaBrown
Community Manager

Yes, thank you Jagadishkatam for helping!

anilgvdbm, I hope you're all set. If so, can you mark the correct answer so others in the community can reference it in case they run into the same problem?

Thanks!

Anna


Join us for SAS Community Trivia
SAS Bowl XXIX, The SAS Hackathon
Wednesday, March 8, 2023, at 10 AM ET | #SASBowl

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!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 3325 views
  • 6 likes
  • 3 in conversation