MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sort - Elapsed time!!!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
rkarthik22
Beginner


Joined: 27 Sep 2008
Posts: 24
Topics: 9

PostPosted: Mon Nov 23, 2009 6:03 am    Post subject: Sort - Elapsed time!!! Reply with quote

Hi,

I am having a input file of having 141.5 million records.

Type : FB
LRECL: 3300
SORT FIELDS=(2126,11,CH,A)
SUM FIELDS=NONE

Sort key is in position 2126.

It almost took 23 hours to sort and dedup the file

Here is the statistics:

Code:

STRT DATE     11/17/09    TCB TIME   01.20.45.81    PGM STG BL       1044K
STARTED    18.22.31.28    SRB TIME   00.34.44.28    SYS STG BL       1356K
ENDED      17.29.26.83    SERV UNTS    714337921    PGM STG AB      31104K
ELAPSED    23.06.55.55    TRAN UNTS     81264949    SYS STG AB      24964K


Here is my JCL:

Code:

//STEP001 EXEC PGM=SORT                               
//SYSOUT  DD SYSOUT=*                                 
//SORTIN  DD DISP=SHR,DSN=input file
//SORTOUT DD DSN=output file, 
//            DISP=(NEW,CATLG,DELETE),                 
//            UNIT=SYSDA,                             
//            SPACE=(CYL,(6500,5500),RLSE),             
//            DATACLAS=DCCOMP,                         
//            VOL=(,,,80),                             
//            DCB=*.STEP001.SORTIN                     
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK03 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK04 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK05 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK06 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK07 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK08 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK09 DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE)   
//SORTWK10  DD UNIT=SYSDA,SPACE=(CYL,(1000,200),RLSE) 
//SYSIN   DD *                                         
 SORT FIELDS=(2126,11,CH,A)
 SUM FIELDS=NONE                         
//*


Is there any other way to reduce the elapsed time of this job?

and i heard that its because of the LRECL of 3300 and the sorting key is in 2126th position, this is taking long time run...is this true?!

Can anyone Please clarify my doubt.

thanks in advance.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Nov 23, 2009 12:31 pm    Post subject: Reply with quote

Which SORT product are you using (DFSORT, Syncsort, CA-Sort)?

Do you happen to have the complete JES log from the run including the sort product's messages? If so, post it.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Nov 23, 2009 2:18 pm    Post subject: Reply with quote

Quote:

It almost took 23 hours to sort and dedup the file


How much CPU time? Did you check if there was any file availability warning?

I am assuming that dedup was typo for debug. In that case how much time it takes when you are not debugging.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Nov 23, 2009 2:22 pm    Post subject: Reply with quote

Dibakar wrote:
I am assuming that dedup was typo for debug. In that case how much time it takes when you are not debugging.


Dibakar,

I think dedup meant removing duplicates. I am curious as to what you meant by debugging a SORT step.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Nov 23, 2009 3:36 pm    Post subject: Reply with quote

Kolusu,

I assumed that rkarthik22 had some other steps in the job that required debugging and 23 hrs included that. All based on misintrepreting dedup.
Back to top
View user's profile Send private message Send e-mail
rkarthik22
Beginner


Joined: 27 Sep 2008
Posts: 24
Topics: 9

PostPosted: Tue Nov 24, 2009 4:47 am    Post subject: Re: Reply with quote

I think Frank/Kolusu will not reply me because we are using SYNCSORT here Sad

here is the jes2 msg:

Code:

.SARPAGE 1                                                                     
.                      J E S 2  J O B  L O G  --  S Y S T E M  X X X X  --  N O
.                                                                               
.17.12.20 JOB41406 ---- TUESDAY,   17 NOV 2009 ----                             
.17.12.27 JOB41406  ICH70001I XXXX     LAST ACCESS AT 17:12:24 ON TUESDAY, NOVEMBER 17, 2009
.17.12.27 JOB41406  $HASP373 XXXXXXXX STARTED - INIT A2   - CLASS A - SYS XXXX 
.17.12.27 JOB41406  IEF403I XXXXXXXX - STARTED - TIME=17.12.27                 
.17.12.27 JOB41406  U11-001 CA-11 - PARM RECEIVED FOR JOB XXXXXXXX - PARM=P     
.17.12.27 JOB41406  U11-046 U11RMS JOB XXXXXXXX WILL INTERFACE WITH DBAS SUBSYSTEM CAL7
.17.12.27 JOB41406  U11-010 CA-11 - 'F' PROCESSING COMPLETE FOR JOB XXXXXXXX   
.17.12.27 JOB41406  U11-614 JOBNAME=XXXXXXXX,TRACKING WITHOUT JEHF RECORDING   
.17.12.27 JOB41406  U11-646 U11TRT JOB XXXXXXXX IS BEING TRACKED VIA DBAS SUBSYSTEM CAL7
.17.12.27 JOB41406  *IEFACTRT* J=XXXXXXXX,S=(001,CA07RMS .CA07RMS ),RCODE=0000 
.17.12.27 JOB41406  NBUSI05I - REGION SET:  6,144KB BELOW;     32MB ABOVE; MEMLIMIT=    300M....
.17.12.28 JOB41406  *IEFACTRT* J=XXXXXXXX,S=(002,JS00100 .PS0100  ),RCODE=0000 
.17.12.28 JOB41406  NBUSI05I - REGION SET:  6,144KB BELOW;     32MB ABOVE; MEMLIMIT=    300M....
.18.22.31 JOB41406  *IEFACTRT* J=XXXXXXXX,S=(003,JS00200 .PS00100 ),RCODE=0000 
.18.22.31 JOB41406  NBUSI05I - REGION SET:  6,144KB BELOW;     32MB ABOVE; MEMLIMIT=    300M....
.18.22.31 JOB41406  *IEFACTRT* J=XXXXXXXX,S=(004,JS00200 .REFABND1),NOT EXECUTED
.18.22.31 JOB41406  NBUSI05I - REGION SET:  6,144KB BELOW;     32MB ABOVE; MEMLIMIT=    300M....
.17.29.26 JOB41406 ---- WEDNESDAY, 18 NOV 2009 ----                             
.17.29.26 JOB41406  *IEFACTRT* J=XXXXXXXX,S=(005,JS00200 .PS00200 ),RCODE=0000 
.17.29.27 JOB41406  IEF404I XXXXXXXX - ENDED - TIME=17.29.27                   
.17.29.27 JOB41406  U11-626 JOBNAME=XXXXXXXX,PRODJOB#=0000,TERMINATED SUCCESSFULLY
.17.29.27 JOB41406  $HASP395 XXXXXXXX ENDED                                     
.------ JES2 JOB STATISTICS ------                                             
.  17 NOV 2009 JOB EXECUTION DATE                                               
.           33 CARDS READ                                                       
.        5,004 SYSOUT PRINT RECORDS       
.            0 SYSOUT PUNCH RECORDS       
.            1 SYSOUT PAGE RECORDS         
.          542 SYSOUT SPOOL KBYTES         
.     1,457.00 MINUTES EXECUTION TIME   
Back to top
View user's profile Send private message
Brian Wood
Beginner


Joined: 14 Jan 2009
Posts: 37
Topics: 0
Location: USA

PostPosted: Tue Nov 24, 2009 9:12 am    Post subject: Reply with quote

rkarthik22:

Please email me a copy of the complete job listing (JCL, JES LOG, SYSOUT containing SyncSort message output) to review.
_________________
Brian Wood
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Back to top
View user's profile Send private message Send e-mail
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue Nov 24, 2009 2:24 pm    Post subject: Reply with quote

Knowing that you have Syncsort, is there any good reason you did not include this in the Subject?

As there are people from both IBM and Syncsort participating, it would be more productive to mention the product in the subject and not waste people's time. . .
_________________
All the best,

di
Back to top
View user's profile Send private message
rkarthik22
Beginner


Joined: 27 Sep 2008
Posts: 24
Topics: 9

PostPosted: Wed Nov 25, 2009 9:33 am    Post subject: Re: Reply with quote

Quote:

Knowing that you have Syncsort, is there any good reason you did not include this in the Subject?


Yeah..i should have mention the sort product that we are using....

Quote:


.......the product in the subject and not waste people's time. . .



Sorry....No offense
I dont think i Wasted any one's timw Except you!!!!!
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Nov 25, 2009 12:16 pm    Post subject: Re: Reply with quote

rkarthik22 wrote:
Sorry....No offense
I dont think i Wasted any one's timw Except you!!!!!


karthik,

With this attitude you are not going any where.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jctgf
Beginner


Joined: 05 Nov 2006
Posts: 89
Topics: 36

PostPosted: Sun Feb 28, 2010 5:55 pm    Post subject: Reply with quote

i think the real problem is the number of bytes to be sorted.
have you tried to increase a few parameters like mincore and so on.
if the position of your sort key really counts, why don't you try repositioning it at the beginning of the record?
your sysin would be:
inrec fields=(2126,11,1,3000)
sort fields=(1,11,a),format=bi,noequals
outrec fields=(12,3000)
sum fields=none
regards

ps.: "noequals" may be the default situation in your installation. if so, no need to declare.
Back to top
View user's profile Send private message Send e-mail
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Sun Feb 28, 2010 11:38 pm    Post subject: Reply with quote

Did you notice that this thread is 3 months old?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group