When I converted the dataset with %xpt2loc I found that creating the XPT in V8 format via %loc2xpt was missing the dataset labels. Dose anyone know about it? Thanks!
Your subject line references %loc2xpt. The body of your question asks about %xpt2loc. Which macro did you actually use?
It may also help to show the code you used for the call to the macro so we know which options you may have used.
@Ryanwang wrote:
When I converted the dataset with %xpt2loc I found that creating the XPT in V8 format via %loc2xpt was missing the dataset labels. Dose anyone know about it? Thanks!
Works fine for me:
data have(label='Class data');
set sashelp.class;
run;
filename xpt temp;
%loc2xpt(libref=work,memlist=have,filespec=xpt,format=v8);
proc delete data=have; run;
%xpt2loc(libref=work,memlist=have,filespec=xpt);
proc contents data=work.have;
run;
Result:
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.