View previous topic :: View next topic
|
Author |
Message |
khanirfan
New User
Joined: 02 Jul 2022 Posts: 1 Location: india
|
|
|
|
Hi! I'm new to Mainframes. Please escuse me if any mistakes.
I got asked in a interview that what should we code a file parameters(space) if we don't know the number of records that will be written to it? |
|
Back to top |
|
 |
Willy Jensen
Active Member

Joined: 01 Sep 2015 Posts: 678 Location: Denmark
|
|
|
|
one suggestion: small primary, large secondary and release:
i.e. SPACE=(CYL,(1,50),RLSE) |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3013 Location: NYC,USA
|
|
|
|
RLSE is key to note here when you answer. |
|
Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1134 Location: Bamberg, Germany
|
|
|
|
It depends also on availability of DFSMS and assignment of a MCLS with immediate release. JCL RLSE parm looks nice, but doesn't have to be coded for all use cases.
For unknown sizes, allocation should be kept dynamically. Best way is to assign a DCLS that allows multivolume (either static or dynamic). Quite a few options to chose from. |
|
Back to top |
|
 |
Willy Jensen
Active Member

Joined: 01 Sep 2015 Posts: 678 Location: Denmark
|
|
|
|
Also cylinder allocation is a perhaps bit of overkill, so
SPACE=(TRK,(15,750),RLSE)
will provide the same space as above, but will free on track level.
And all the caveats pointed out above still apply. |
|
Back to top |
|
 |
|