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

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2240 views
  • 0 likes
  • 3 in conversation