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

PS file parameter


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

New User


Joined: 02 Jul 2022
Posts: 1
Location: india

PostPosted: Sat Jul 02, 2022 11:05 am
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 599
Location: Denmark

PostPosted: Sat Jul 02, 2022 2:17 pm
Reply with quote

one suggestion: small primary, large secondary and release:
i.e. SPACE=(CYL,(1,50),RLSE)
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2905
Location: NYC,USA

PostPosted: Sun Jul 03, 2022 12:01 pm
Reply with quote

RLSE is key to note here when you answer.
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 812
Location: Bamberg, Germany

PostPosted: Sun Jul 03, 2022 12:11 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 599
Location: Denmark

PostPosted: Sun Jul 03, 2022 3:39 pm
Reply with quote

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
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 File matching functionality in Easytr... DFSORT/ICETOOL 14
No new posts vsam file access JCL & VSAM 12
No new posts To Remove spaces (which is in hex for... JCL & VSAM 10
No new posts How can I select certain file dependi... JCL & VSAM 12
This topic is locked: you cannot edit posts or make replies. How can I select certain file dependi... Compuware & Other Tools 1
Search our Forums:

Back to Top