BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi guys

I use proc metadata to retrieve metadata. Everything works, but when I tried to put it inside the macro it says following:

[pre]NOTE: The file IN is:
File Name=C:\DOCUME~1\DEVSAS~3\LOCALS~1\Temp\out.xml,
RECFM=V,LRECL=256

NOTE: 0 records were written to the file IN.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds

ERROR: Missing root element definition
NOTE: PROCEDURE METADATA used (Total process time):
The SAS System

real time 0.01 seconds
cpu time 0.01 seconds

NOTE: The SAS System stopped processing this step because of errors.[/pre]
Can somebody help me? What does it want from me, it worked until I put it inside the macro? What is 'root element definition'?

Thank you
1 REPLY 1
LinusH
Tourmaline | Level 20
I think root element is highest level in the XML-file. But the problem isn't probably the XML-file, rather the macro logic of your program. Without a full log/the macro program it's difficult to help you out.

/Linus
Data never sleeps

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!

New Learning Events in April

 

Join us for two new fee-based courses: Administrative Healthcare Data and SAS via Live Web Monday-Thursday, April 24-27 from 1:00 to 4:30 PM ET each day. And Administrative Healthcare Data and SAS: Hands-On Programming Workshop via Live Web on Friday, April 28 from 9:00 AM to 5:00 PM ET.

LEARN MORE

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