View previous topic :: View next topic
|
Author |
Message |
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
hi folks
How much SPACE to specify in JCL for a "new" dataset? Explain with an example. |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Normally, you don't specify space, as the System Managed Storage (SMS) system handles that task.
If. however, you wish to override that, then the answer will depend on your shop's standards. In our shop, space is calculated as follows:
Primary Tracks = (LRECL * MAX # of records) / 56664
Primary Space = (BLKSIZE / LRECL) * 2 * Primary Tracks
Primary Space = Primary Space / 1000
Secondary Tracks = (LRECL * (MAX # of records * .2)) / 56664
Secondary Space = (BLKSIZE / LRECL) * 2 * Secondary Tracks
Secondary Space = Secondary Space / 1000
so, space is allocated like this:
Code: |
// SPACE=(LRECL,(Primary Space,Secondary Space),RLSE),AVGREC=K
|
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi IK,
You can economize by using BLKSIZE and secondary allocations, but the bottom line is "it depends on how many and how big the recs your new file might be." |
|
Back to top |
|
|
|