Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

why DYNAMBR=20 only ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
vab987

New User


Joined: 01 Dec 2006
Posts: 29
Location: S.A

PostPosted: Mon Sep 07, 2009 5:45 pm    Post subject: why DYNAMBR=20 only ?
Reply with quote

Hi all,

As per IBM definition :- DYNAMNBR tells the system to hold a number of resources in anticipation of reuse.

What are the resources that System holds for reuse ?
Another question is I have always seen DYNAMBR=20, why is it so ?


Regards,
Vaibhav
Back to top
View user's profile Send private message

jeevan_pattanaik

New User


Joined: 02 Nov 2005
Posts: 5
Location: Pune,India

PostPosted: Mon Sep 07, 2009 6:18 pm    Post subject: why DYNAMBR=20 only ?
Reply with quote

You normally specify all the data sets you need with the DD statements in your JCL for a step, if you write programs that dynamically allocate data sets, you should code the DYNAMNBR parameter on the EXEC statement so the system can acquire the resources just before their use and release themm immediately after use.
You code //stepname EXEC DYNAMNBR=n
The n tells the system how many data set allocations to hold in aniticipation of reuse.( The system actually holds n plus the total number of the DD statements used by the step.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Sep 07, 2009 8:26 pm    Post subject:
Reply with quote

Just other thread: http://ibmmainframes.com/post-44303.html
Back to top
View user's profile Send private message
vab987

New User


Joined: 01 Dec 2006
Posts: 29
Location: S.A

PostPosted: Tue Sep 08, 2009 12:38 pm    Post subject:
Reply with quote

Thanks, but I am still stuck why every where DYNAMNBR is set to 20 only, nothing else ?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Tue Sep 08, 2009 3:04 pm    Post subject:
Reply with quote

Inertia -- probably one of IBM's sample programs used DYNAMNBR=20 and so everybody started using it, not realizing the significance of the value. My batch TSO sessions use 200 not 20, but then I do some things applications programmers don't generally do.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Sep 08, 2009 3:53 pm    Post subject:
Reply with quote

Just to have some satisfaction, using ISPF 3.14, search on "DYNAMNBR=" in your base line PROC library. Check if you've some other values used for DYNAMNBR. At my shop, most procedures are using value as 20 but there are many other which use 40, 35, 25 and so on...
Back to top
View user's profile Send private message
vab987

New User


Joined: 01 Dec 2006
Posts: 29
Location: S.A

PostPosted: Wed Sep 09, 2009 2:34 am    Post subject:
Reply with quote

Thanks, even at my shop it is 20.

Thanks all!
Vaibhav
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Sep 09, 2009 2:45 pm    Post subject:
Reply with quote

You're welcome. Hopefully, replies provide you a direction (at least).

Have a good one,
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Wed Sep 09, 2009 11:57 pm    Post subject:
Reply with quote

This is a really funny question so I searched the IBM website for DYNAMNBR=20 and there are a zillion hits in examples so that is probably where it comes from. As has been said, nothing special about 20. Most systems I worked on seemed to always use 99 for no good reason. The books only have a few DYNAMNBR=99 hits.
Back to top
View user's profile Send private message
vab987

New User


Joined: 01 Dec 2006
Posts: 29
Location: S.A

PostPosted: Thu Sep 10, 2009 12:14 pm    Post subject:
Reply with quote

Thanks everyone for you help !!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us