Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SORT - SE37 Abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SORT - SE37 Abend
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: 785
Location: Chennai, India

PostPosted: Wed Mar 07, 2012 12:08 pm    Post subject: Reply to: SORT - SE37 Abend
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    Post subject: Reply to: SORT - SE37 Abend
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Mar 07, 2012 3:16 pm    Post subject: Reply to: SORT - SE37 Abend
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

Senior Member


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

PostPosted: Wed Mar 07, 2012 4:26 pm    Post subject:
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    Post subject: Reply to: SORT - SE37 Abend
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    Post subject: Reply to: SORT - SE37 Abend
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    Post subject: Reply to: SORT - SE37 Abend
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us