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

allocation of secondary space


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

New User


Joined: 02 Sep 2004
Posts: 5
Location: chennai

PostPosted: Sun Mar 20, 2005 12:27 pm
Reply with quote

hi,

can anyone explain me as to how the secondary space for a dataset is allocated?

for eg.
when i code space=(80,(2000,0))

i m able to store exactly 2000 records. if i store another record it gives me a sb37 error which is understandable.
when i code space=(80,(2000,3000))
I am not able to determine as to how many records can this dataset store even before the job runs.


Given a requirement that i want to store 20000 records initially and if i expect an increase in file size by another 10000
how do i code the primary and sec space.

It would be great if you could reply me at *****Email id removed*****
Back to top
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Fri Mar 25, 2005 7:20 pm
Reply with quote

Quote:
when i code space=(80,(2000,0))

i m able to store exactly 2000 records. if i store another record it gives me a sb37 error which is understandable.


Yes, you can store only 2000 records. because your secondaryu cllcoation is 0.

when i code space=(80,(2000,3000))
I am not able to determine as to how many records can this dataset store even before the job runs.

Now you can store upto: (2000*80) + ((3000*80)*15) bytes for your dataset.
Back to top
View user's profile Send private message
lokeshpurushothaman

New User


Joined: 02 Sep 2004
Posts: 5
Location: chennai

PostPosted: Wed Mar 30, 2005 2:46 pm
Reply with quote

Hi Priya,

Whatever you say is theoritically fine. but practically it doesn't work.
Before posting this question i tried with 5000 records but each time i run the job and then add records thru ispf it either takes in more than 5000 records or less than that. Unable to freeze the no. of records.

More inputs on this is welcome.
Back to top
View user's profile Send private message
ankyhunk

Moderator


Joined: 05 May 2005
Posts: 98
Location: Navi Mumbai, India

PostPosted: Fri May 06, 2005 1:07 pm
Reply with quote

Hi Lokesh,
You can try this - SPACE=(CYL,(100,50),RLSE). Here the space allocated would be in cylinders ( 100 primary, 50 secondary). But dont worry the rest of the space will be released through the release parameter at the end of the step.
Back to top
View user's profile Send private message
lokeshpurushothaman

New User


Joined: 02 Sep 2004
Posts: 5
Location: chennai

PostPosted: Fri May 06, 2005 10:21 pm
Reply with quote

Hi Ankur,

I guess what you say is wrong because CYL,(100,50),RLSE) will allocate
100 primary cylinders and 50*15=750 secondary cylinders.
Correct me if I am wrong.
Back to top
View user's profile Send private message
SteveConway

New User


Joined: 26 May 2005
Posts: 28
Location: Northern VA, USA

PostPosted: Fri May 27, 2005 9:15 pm
Reply with quote

A sequential file, with no striping, no multiple volumes specified, is limited to 16 extents on a given DASD volume. This limitation is due to the format of the VTOC DSCBs.

A primary allocation can be made in up to five extents on a given volume, so you may have from 11 to 15 extents available for secondary allocation. A fragmented or very full volume may affect your allocation.

Barring SMS 'guaranteed space' processing, or an empty DASD volume to work with, and other uses of available technology (striping, multi-volume, etc), it can be impossible to determine exactly how many records a newly-allocated dataset will hold.

Generally speaking, Ankyhunk's statement above is correct, 100 cylinders primary space, and secondary allocation set at 50 cylinders. Lokesh is also correct in pointing out that the system will attempt to allocate that secondary value up to 15 times. You have a potential total size of the dataset of 850 cylinders, as allocated above.


Cheers,,,Steve
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
Search our Forums:

Back to Top