IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SORT - SE37 Abend


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pawan_kch

New User


Joined: 05 Apr 2006
Posts: 11
Location: Bangalore

PostPosted: Wed Mar 07, 2012 11:56 am
Reply with quote

Hi,

The below sort card is failing with SE37. My input file is a VB file with LRECL of 250 and contains almost 390million records, exact count is 389195973.

Code:
//STEP010  EXEC SORTD
//SORTIN   DD DISP=SHR,DSN=INPUTFILE,
//SORTOUT  DD DSN=OUTPUTFILE,
//         DISP=(NEW,CATLG,CATLG),
//         DCB=*.SORTIN,
//         UNIT=SYSDA,SPACE=(CYL,(800,800),RLSE)
//SYSIN    DD *
  SORT FIELDS=(7,17,CH,A,24,2,BI,A,26,2,BI,A)


DCB OF SORTIN DATASET is,
Code:
Record format . . . : VB   
Record length . . . : 250 
Block size  . . . . : 27998


I tried to put the 15 sort work areas as below,
Code:

//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(500,500))
//SORTWK02 DD UNIT=SYSDA,SPACE=(CYL,(500,500))


but still the same issue.

Even i tried to route the output to a TAPE file, but no luck.

I tried to do the sort on only 1 field, instead of 3 fields
Code:
SORT FIELDS=(7,17,CH,A)

even this didnt work.

Can you suggest me any possible solution to fix this issue?
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Wed Mar 07, 2012 12:08 pm
Reply with quote

From Z/OS DFSORT MSGS/CDS

Quote:
E37 ¦ A SORTOUT or OUTFIL data set was allocated on a ¦
¦ primary volume that had either insufficient storage or ¦
¦ excessive fragmentation, and no secondary volume was ¦
¦ specified. Specify more than one volume in the VOLSER ¦
¦ parameter for the SORTOUT
or OUTFIL data set or ¦
¦ compress the volume to allow it to contain the full 16 ¦
¦ extents. ¦


Please post the exact message and code from SORT step.
Back to top
View user's profile Send private message
pawan_kch

New User


Joined: 05 Apr 2006
Posts: 11
Location: Bangalore

PostPosted: Wed Mar 07, 2012 2:24 pm
Reply with quote

Here is the abend log,

Code:
VAM-0605 $$$$$$$$$$$$$$$$$$$$$$$$$
V370040 END OF VOLUME RECOVERY OPERATION STARTING FOR
V370040 Z0636212,STEP010,SORTOUT,PSTT.NT.HP.*****
V370040 CURRENTLY ON EXTENT # 1 ON VOLUME TST121
IEC614I EXTEND FAILED - RC 000, DIAGNOSTIC INFORMATION IS (04034379) ,
STEP010,      ,PSTT.NT.HP2SM.FSTAX.D.D120304.SRT
IEC032I E37-08,IFG0554P,Z0636212,STEP010,SORTOUT,4423,
TST121,04034379,PSTT.NT.HP.*******
WER999A Z0636212,STEP010 ,       
 -  UNSUCCESSFUL SORT E37 S REASON=00000008
IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=E37  REASON CODE=00000008
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Mar 07, 2012 3:16 pm
Reply with quote

the WER messages indicates that the user is using SYNCSORT, topic moved

if the input dataset is on disk it should be easy to find out its size

but the best route would be Your support, the problem is not really sort related

could have happened to any program writing an output dataset with space allocation issues
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Mar 07, 2012 4:26 pm
Reply with quote

Increasing the SORTWORK file won't help, specially when we don't know if the DYNALLOC is set to Y or N. (Per your posts, it looks like it should be set to Y.)

Instead of increasing the SORTWORK what happened when you increased the SPACE for SORTOUT?

Quote:
Even i tried to route the output to a TAPE file, but no luck.
If the input, SORTIN, is on DASD and you use 'refer-back' as your code shows using DCB=*.SORTIN, you might potentially waste a lot of TAPE, said that it won't help you.
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Wed Mar 07, 2012 6:08 pm
Reply with quote

pawan_kch,

Quote:

Even i tried to route the output to a TAPE file, but no luck.


Did you try giving Unit=<tape>,VOL=(,,,111).

Code:

  VOLUME|VOL=({PRIVATE}{,RETAIN}{,vol seq #}{,vol count}   

vol count                                                       
                                                               
   Specifies the maximum number of volumes that an OUTPUT data 
   set requires. This is a decimal number in the range 1       
   through 255, inclusive - the total number of output volumes 
   for a DD statement may not exceed 4,096 volumes, however.   



Thanks
-3nadh
Back to top
View user's profile Send private message
pawan_kch

New User


Joined: 05 Apr 2006
Posts: 11
Location: Bangalore

PostPosted: Sun Mar 11, 2012 3:54 am
Reply with quote

Thanks bodatrinadh,

Your tip worked for me. Thanks much.
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Sun Mar 11, 2012 10:54 pm
Reply with quote

Thanks for letting us know.

Thanks
-3nadh
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts ISAM and abend S03B JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top