DATA Step, Macro, Functions and more

Reading in XML data

Reply
N/A
Posts: 0

Reading in XML data

I have been reading around in the doc and experimenting, but I'm not getting anywhere useful.

Sample data =
[pre]





















[/pre]

The documentation says to use a libname statement followed by a data step.
mine is
[pre]
LIBNAME xml_in xml "&BaseRP/User/Chuck/Projects/Server/app_1021215380_157_20080519.pdml";

data egtask.indata;
xml_in.proto;
run;
quit;
[/pre]
but I keep getting an error
[pre]
ERROR: DATA STEP Component Object failure. Aborted during the COMPILATION phase.
NOTE: The SAS System stopped processing this step because of errors.
16 data egtask.indata;
17 xml_in.proto;
____________
557
ERROR 557-185: Variable xml_in is not an object.
[/pre]
So, before I try tech support, anyone out there with experience with this?
I doing this with a Code task in EG 4.1
Frequent Contributor
Frequent Contributor
Posts: 77

Re: Reading in XML data

Posted in reply to deleted_user
> I have been reading around in the doc and
> experimenting, but I'm not getting anywhere useful.
>
> Sample data =
> [pre]
>
>
>
>
>
> showname="Number" value="1" size="1518"/>
>
> showname="Packet Length" value="5ee" size="1518"/>
>
> showname="Captured Length" value="5ee"
> size="1518"/>
>
> value="1211219820.462153741" size="1518"/>
>

>
>
> show="May 19, 2008 13:57:00.462153741"/>
>
>
> showname="Time delta from previous displayed frame:
> 0.000000000 seconds" size="0" pos="0"
> show="0.000000000"/>
>
> size="0" pos="0" show="0.000000000"/>
>
>
> show="1518"/>
>
>
>
>
> show="eth:vlan:ip:tcp"/>
>

> /pre]
>
> The documentation says to use a libname statement
> followed by a data step.
> mine is
> [pre]
> LIBNAME xml_in xml
> "&BaseRP/User/Chuck/Projects/Server/app_1021215380_157
> _20080519.pdml";
>
> ata egtask.indata;
> xml_in.proto;
> n;
> quit;
> [/pre]
> but I keep getting an error
> [pre]
> ERROR: DATA STEP Component Object failure. Aborted
> during the COMPILATION phase.
> NOTE: The SAS System stopped processing this step
> because of errors.
> 16 data egtask.indata;
> 17 xml_in.proto;
> ____________
> 557
> ERROR 557-185: Variable xml_in is not an object.
> [/pre]
> So, before I try tech support, anyone out there with
> experience with this?
> I doing this with a Code task in EG 4.1


Did you intentionally leave off the keyword set?

set xml_in.proto;
N/A
Posts: 0

Re: Reading in XML data

Sometimes I am such a _________________________ .
I can be so blind!

ok, new error. Apparently I need to read some more about XMLMAP
Ask a Question
Discussion stats
  • 2 replies
  • 118 views
  • 0 likes
  • 2 in conversation