BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I am having performance issues in sorting huge SAS datasets in z/OS.
Options Used:
options compress=yes reuse=yes STATS MEMRPT FULLSTIMER MSGLEVEL=I bufsize=0
bufno=10 SORTSIZE=MAX UBUFNO = 20 THREADS dbsliceparm=(threaded_apps,4);

No of Records: 48 Million.
LRECL= 800
No of columns in proc sort: 9
Sort Utility: z/Os Host DF Sort
proc sort data = work.Source
out = work.Target
NOEQUALS;
by CRED_NO DBTR_GRP_NO SEC_NO CUST_NO REC_ID REC_TYP TRANS_CD TXT_TYPE_ID REC_NO;
run;

Time Taken: 30 mins!!

Can some one please suggest how can I reduce this time.
2 REPLIES 2
Robert_Bardos
Fluorite | Level 6
Please post the log messages as well. Considering the options you have set, you should have a plenty of them. Be sure to specify option SORTMSG as well.
Doc_Duke
Rhodochrosite | Level 12
Pratik,

You will probably have to experiment with this as there are so many variables and some of them a host specific.

Try the TAGSORT option; that can sometimes speed up a sort by reducing disk I/O.

Unless you have text with lots of white-space, the compress=yes can actually slow down SAS.

z/OS installations often use non-SAS sort tools (we used SyncSort years ago). You may be able to speed it up by passing parameters directly to the tool. Check SAS's z/OS companion.

Another possibility is to use PROC SQL. I don't know that it would speed it up, but do know that it uses different SAS routines.

Doc Muhlbaier
Duke

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2 replies
  • 1011 views
  • 0 likes
  • 3 in conversation