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

SORT large Files - Sb37


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Archana_MF

New User


Joined: 21 Jul 2006
Posts: 49
Location: California

PostPosted: Sat Apr 14, 2007 3:52 am
Reply with quote

Hi,
I need to Sort a Tape DS with around 7 Million records
I am using the below JCL and it's giving SB37, I tried increasing the Cylinders to 3000 but no luck. Also gave Sortwork files still no use

/SORT01 EXEC PGM=SORT
//*
//SORTIN DD DSN=INPUT.FILE.XYZ,DISP=SHR
/
//*
//SORTOF1 DD DSN=TEST.GNC9010.ICL10Q0.MONTHLY.SORT,
// DCB=(RECFM=VB,LRECL=4100,BLKSIZE=0),
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(100,100),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(500,500),RLSE)
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(500,500),RLSE)
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(500,500),RLSE)
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(500,500),RLSE)
//SORTWK01 DD UNIT=SYSDA,SPACE=(CYL,(500,500),RLSE)
//SYSIN DD *
SORT FIELDS=COPY
OPTION EQUALS
OUTFIL FILES=(1),INCLUDE=(70,02,CH,EQ,C'00')
/*

Can someone please let me know what else I can do or also if there is any better way to do the same task

Thank you in advance
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Apr 14, 2007 4:42 am
Reply with quote

Quote:
I need to Sort a Tape DS with around 7 Million records


But you have SORT FIELDS=COPY so you're copying the tape data set, not sorting it.

Quote:
I am using the below JCL and it's giving SB37, I tried increasing the Cylinders to 3000 but no luck. Also gave Sortwork files still no use


Since you're doing a copy, your SORTWK data sets aren't used and you can't be getting the B37 on one of those. Remove them as they're just wasting space you might need for SORTOF1.

So you must be getting the B37 on the SORTOF1 data set. You need to increase the space for that one to hold all of the output records. The maximum size needed would be for the 7 million records in the input file, but you could make it smaller depending on how many records you're omitting. I don't know how much space you'd need on DASD (my guys who figure out that kind of thing have left for the day) - maybe somebody else could figure it out for you.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Apr 14, 2007 5:06 am
Reply with quote

Hello,

To find out how many of the 7million records will be written to the output file, you could run one run with the output dataset DD set to DUMMY. When the step runs, the output will should show how many records were copied. As your data is VB, the byte-count will be valuable also. Recently, i sorted 12+ million 80-byte records and the output required 1,187 3390-cylinders, so (100,100) will surely not be enough. . . Unless most of your records are way below the 4100.

When you have the number of records (and the byte count, which should be in the output) talk with your storage management people and ask how much space you need to allocate for that volume of data and what UNIT= or DATACLAS you should use in your jcl. If you use UNIT=(xxxxx,10) the dataset will be able to span across 10 volumes. Depending on what model of dasd you allocate on, the allocation may vary.

Good luck and we're here if there are questions icon_smile.gif
Back to top
View user's profile Send private message
Archana_MF

New User


Joined: 21 Jul 2006
Posts: 49
Location: California

PostPosted: Sat Apr 14, 2007 6:14 am
Reply with quote

Thank you all for the info.
I will check with storage managment about the SPACE.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top