BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello,

 

I am not familiar at all with the operation that we can carry out on an xml file.

I have tried to replicate the example found in the documentation

"http://support.sas.com/documentation/cdl/en/engxml/65362/HTML/default/viewer.htm#n1aye4njb0j9ffn1gml..."

 

(see code below) but I am getting this error message:

 

The opening of the data failed. The following error occurred. [Error] The output.suppliers.data file is sequential. This task requires observations to be read in random order, but the engine only allows sequential access.

 

Does someone could help me with that issue

 

proc import

datafile="\\...\Documents\Test\suppliers.xlsx"

dbms=xlsx

out=work.suppliers (drop= M)

replace;

run;

 

/*We have the suppliers table */

 

filename xsd "...\Documents\Test\XML\suppliers.xsd";

 

 

libname output xml "...\Documents\Test\XML\suppliers.xml"

XMLTYPE=generic xmlmeta=schemadata xmlschema=xsd;

 

data output.suppliers;

set work.suppliers;

run;

 

 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 0 replies
  • 820 views
  • 0 likes
  • 1 in conversation