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: 712
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: 3051
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

Senior Member


Joined: 15 Aug 2015
Posts: 1247
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: 712
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 FTP VB File from Mainframe retaining ... JCL & VSAM 6
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top