BookmarkSubscribeRSS Feed
jei
Quartz | Level 8 jei
Quartz | Level 8

Hi!

 

I have this script to view the XML file in SAS (I am using SAS 9.4):

 

filename ClientDe 'C:\Desktop\Sample1\ClientDetails.xml';
filename SXLEMAP 'C:\Desktop\Sample1\sample.map';
libname ClientDe xmlv2 xmlmap=SXLEMAP ;

 

 

/*
* Catalog
*/

proc datasets lib=ClientDe; run;

/*
* Contents
*/

proc contents data=ClientDe.queryResponse varnum; run;
proc contents data=ClientDe.entity varnum; run;
proc contents data=ClientDe.clientDetailsDTO varnum; run;

/*
* Printing
*/

title 'Table queryResponse';
proc print data=ClientDe.queryResponse(obs=10); run;
title;

title 'Table entity';
proc print data=ClientDe.entity(obs=10); run;
title;

title 'Table clientDetailsDTO';
proc print data=ClientDe.clientDetailsDTO(obs=10); run;
title;

/*
* Local Extraction
*/

DATA queryResponse; SET ClientDe.queryResponse; run;
DATA entity; SET ClientDe.entity; run;
DATA clientDetailsDTO; SET ClientDe.clientDetailsDTO; run;

 

But when openning the datasets the following error occured and cannot open it.

 

ERROR:

The open data operation failed . The following error occured. [Error] File CLientDTO.DATA is sequential. This task requires reading observations in random order, but the engine allows only sequential access.

 

What does this mean? And how am I able to open the datasets?

 

Thank you!

 

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

You have an error on CLientDTO but this name appears nowhere in your program. So it seems that the code provided doesn't match the question.

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 Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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