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 

How to decide space attribute for a temporary dataset?

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


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Sat Oct 27, 2007 11:43 pm    Post subject: How to decide space attribute for a temporary dataset? Reply with quote

Hi
How do i decide on the declaration of attributes of a temporary dataset?

This is a SORT JOB
SORTIN=> A Tape data set
RECFM=FB LRECL=000060 BLKSIZE=032760
contains approximately 36663880 records.
SORTOUT=>
Code:
//SORTOUT  DD DSN=&&TEMP1,DISP=(MOD,PASS),
//            SPACE=(CYL,(?,?)),     
//            UNIT=SYSDA                 


SORT CARD=> has an include COND, which includes selective records.
SORTOUT will also have approximately same number of records as SORTIN.

Please help me in deciding the SPACE attribute for the SORTOUT-temporary dataset!
_________________
cHEERs
krisprems
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sun Oct 28, 2007 4:09 am    Post subject: Reply with quote

27998 / 60 = 466.3333 = 466 records per block = BLKSIZE=27960

2 blocks per track = 932 records per track

36663880 / 932 = 39338.92 = 39339 tracks required = 2623 clinders
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Oct 29, 2007 12:25 am    Post subject: Re: How to decide space attribute for a temporary dataset? Reply with quote

krisprems,

Override your temp file with a PS file and then check that PS file for the SPACE parameters.
Back to top
View user's profile Send private message Send e-mail
krisprems
Beginner


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Mon Oct 29, 2007 2:46 am    Post subject: Reply with quote

vkphani, thanks for that idea Idea
But, i would like to know how to calculate myself.
Expat
Thanks for your logical solution.
The only doubt i have is, Arrow what are these 2 values 27998 and 60 in the below quote.
Guess 60 is LRECL, but not clear about another one.
Quote:

27998 / 60 = 466.3333 = 466 records per block = BLKSIZE=27960

_________________
cHEERs
krisprems
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Oct 29, 2007 2:59 am    Post subject: Reply with quote

krisprems,

Check the below link to calculate SPACE parameters.
http://www.mvsforums.com/helpboards/viewtopic.php?t=28&highlight=space+calculate
Back to top
View user's profile Send private message Send e-mail
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Mon Oct 29, 2007 3:25 am    Post subject: Reply with quote

krisprems wrote:

Guess 60 is LRECL, but not clear about another one.
Quote:

27998 / 60 = 466.3333 = 466 records per block = BLKSIZE=27960
Back to top
View user's profile Send private message
krisprems
Beginner


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Mon Oct 29, 2007 4:33 am    Post subject: Reply with quote

vkphani
Thanks for that link. All my doubts are cleared now. Smile
So,27998 is the constant that we have to consider for 3390-n device.

Cicsguy, you are trying to tell something, but i don't understand as to what ? Rolling Eyes
Hope you did not get confused with 27998 and 27960
_________________
cHEERs
krisprems
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Mon Oct 29, 2007 4:40 am    Post subject: Reply with quote

krisprems wrote:
vkphani
Thanks for that link. All my doubts are cleared now. Smile
So,27998 is the constant that we have to consider for 3390-n device.

Cicsguy, you are trying to tell something, but i don't understand as to what ? Rolling Eyes
Hope you did not get confused with 27998 and 27960


krisprems,

Yes it is a constant value for 3390. But not sure as to how this constant got created.
CICSguy is suggesting to take blksize as 27960 I think.
Back to top
View user's profile Send private message Send e-mail
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Mon Oct 29, 2007 4:46 am    Post subject: Reply with quote

Since you can't have a third of a record in a block, 60 * 433 = 27960........
Back to top
View user's profile Send private message
krisprems
Beginner


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Mon Oct 29, 2007 5:30 am    Post subject: Reply with quote

vkphani
Quote:

But not sure as to how this constant got created.

Come on, in the link that you gave first part is the explanation as to how that constant got created.... see this below quote from the link you provided
Quote:

The largest blocksize you can define is 32,760, which is good for tapes,but it is mere waste on DASD, as 55,996 - 32760 = 23,236 bytes left over,and because tracks can't be shared between other files, that leftover space would just be wasted.

So,55,996/2=27,998,which is half-track blocking,the most space-efficient blocksize to use on 3390's.



CICS Guy
Quote:
Since you can't have a third of a record in a block, 60 * 433 = 27960........

OK, you are pointing on 27960... but my question was on 27998.. any ways, thank u
_________________
cHEERs
krisprems
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Mon Oct 29, 2007 8:17 am    Post subject: Reply with quote

krisprems wrote:
Quote:

The largest blocksize you can define is 32,760, which is good for tapes,but it is mere waste on DASD, as 55,996 - 32760 = 23,236 bytes left over,and because tracks can't be shared between other files, that leftover space would just be wasted.

So,55,996/2=27,998,which is half-track blocking,the most space-efficient blocksize to use on 3390's.
but my question was on 27998.. any ways, thank u
Back to top
View user's profile Send private message
Tompee
Beginner


Joined: 23 Jan 2008
Posts: 1
Topics: 0

PostPosted: Thu Jan 24, 2008 4:38 am    Post subject: Reply with quote

so, if it's not clear from earlier posts - a track on a 3390-n is ~56KB. The largest size a block can be is 3~2KB.
If you select a block size of 32KB, you waste ~24KB of space on each track.


Quote:

The largest blocksize you can define is 32,760, which is good for tapes,but it is mere waste on DASD, as 55,996 - 32760 = 23,236 bytes left over,and because tracks can't be shared between other files, that leftover space would just be wasted.

So,55,996/2=27,998,which is half-track blocking,the most space-efficient blocksize to use on 3390's.


It's wasted if you don't have a variable record length, IIRC? If you have variable length records, your blocks are variable length too, or something like that...
Back to top
View user's profile Send private message
dr_te_z
Beginner


Joined: 08 Feb 2007
Posts: 18
Topics: 3

PostPosted: Thu Jan 24, 2008 7:03 am    Post subject: Reply with quote

Do not calculate youself:
Code:

SPACE=(60,(37,1),,CONTIG),AVGREC=M, 
This means: allowcate room for 37 miljon records of 60 char each.

But this will be better:
Code:

//SORTWK01 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK02 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK03 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK04 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK05 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK06 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK07 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M
//SORTWK08 DD  SPACE=(060,(5,1),,CONTIG),DISP=(,DELETE),AVGREC=M

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management 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