BookmarkSubscribeRSS Feed
Saranya_Sub
Obsidian | Level 7

Hi All,

 

I have a requirement to convert a ODM xml file to sas dataset. i have used below method to do that, but the execution time is more as it is  a 25MB file. Is there any way to do it faster.

 

 

filename NHL  "/path/ODM.xml";

filename map "/path/odm_map.map";

 

libname NHL xmlv2 xmlmap=map;

 

proc copy in=nhl out=work;

run;

 

ODM.xml is a 25 mb file so when i try to copy those datasets present in NHL to work library, it's taking allmost 10 min, is there any way to reduce the execution time.

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

Use option fullstimer and show us the log.

Saranya_Sub
Obsidian | Level 7

Hi Chris,

 

Thanks for the response . Please  find below details of the fullstimer when i tried to load  ~3mb XML File

 

Total Table created : 54 in which more than 14 tables have ~18000 records and remaining tables have ~1000 records

 

NOTE: PROCEDURE COPY used (Total process time):
real time 4:03.72
user cpu time 4:00.68
system cpu time 1.17 seconds
memory 32842.37k
OS Memory 52888.00k
Timestamp 19/05/2020 03:14:43 PM
Step Count 4 Switch Count 802
Page Faults 3
Page Reclaims 17172
Page Swaps 0
Voluntary Context Switches 3662
Involuntary Context Switches 27536
Block Input Operations 504
Block Output Operations 56512

 

SAS Version : 9.4_M2

total memsize is  MEMSIZE=3221225472 in our server

 

Thanks,

Saranya

 

ChrisNZ
Tourmaline | Level 20

The process is clearly CPU-bound. I am unsure whether proc copy can be replaced with a more efficient method, but another way would be to either procure a faster CPU, or split the process into pieces and spread it across several CPUs or cores. 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 601 views
  • 1 like
  • 2 in conversation