BookmarkSubscribeRSS Feed
Sirisha1520
Calcite | Level 5
Hi all,

I have a sas code and it reads input file with 4crores records, takes around 66.07 cpu seconds. Is there any way to reduce run time for reading large input files?

Thanks,
Sirisha
5 REPLIES 5
Sajid01
Meteorite | Level 14

Well the time depends upon many things. Is it on a local or remote drive, the hardware and software resources available, your code etc, the state of the file (compressed or uncompressed etc). And you are reading 40 million records and there could be many variables in each record.
It is difficult to give any suggestion specific to your case.

 

Sirisha1520
Calcite | Level 5
Its a mainframe job using Ps file having few char and date columns around 15 variables with record length 80.
Tom
Super User Tom
Super User

@Sirisha1520 wrote:
Its a mainframe job using Ps file having few char and date columns around 15 variables with record length 80.

What slice of the machine did your job get?  Maybe it was busy doing something else that had higher priority than you.

Kurt_Bremser
Super User

Please use units that the rest of the world understands. Wikipedia told me that a "crore" is 10 million (10 mega).

So you are reading 40 million lines from a mainframe partitioned dataset, which means that it took one CPU second to process ~ 150000 rows. Not bad at first glance.

Looking deeper, 80 bytes per row means a raw data throughput of 11.5 MB/s, which is not really fast.

Please run the import step again, with

options fullstimer;

set, and then post the complete log, so we can see any transformations you make, and the real time/CPU time rate.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 5 replies
  • 537 views
  • 1 like
  • 5 in conversation