🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 05-16-2016 09:53 PM
(2750 views)
Hi there.
May I please ask how can I associate the format.xpf with the SAS data. I have two files generated from Stata fdasave command i.e. data.xpt and formats.xpf.
In order to browse the SAS data after the first proc copy, I needed to supress the formats in the datastep.
The second 'proc copy' only creates a SAS dataset with variable FMNTNAME, START and LABEL.
Your help is much appreciated.
libname sasfile "\\Desktop\Attempt";
libname xptfile xport "\\Attempt\data.xpt";
proc copy in=xptfile out=sasfile memtype=data; run;
data temp; set sasfile2.data; format _all_; run;
libname xptfile xport "\\Attemp\formats.xpf";
proc copy in=xptfile out=sasfile; run;
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Import formats data set first.
Use that as input to a proc format using the cntlin option. Store the output formats in Sasfile.
Point the fmtsearch option there.
Then import your data. Now your formats should work, given the they match.
Use that as input to a proc format using the cntlin option. Store the output formats in Sasfile.
Point the fmtsearch option there.
Then import your data. Now your formats should work, given the they match.
Data never sleeps
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Import formats data set first.
Use that as input to a proc format using the cntlin option. Store the output formats in Sasfile.
Point the fmtsearch option there.
Then import your data. Now your formats should work, given the they match.
Use that as input to a proc format using the cntlin option. Store the output formats in Sasfile.
Point the fmtsearch option there.
Then import your data. Now your formats should work, given the they match.
Data never sleeps