MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Maximum limit of DDs associated with COBOL program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Mukunda
Beginner


Joined: 11 Dec 2002
Posts: 46
Topics: 15

PostPosted: Thu Jul 31, 2003 3:52 pm    Post subject: Maximum limit of DDs associated with COBOL program Reply with quote

Is there any limit on number of SELECT ASSIGN statements in a COBOL program? I need to read some 90 transaction files and validate them? Call all that be done in a single program? Rolling Eyes
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu Jul 31, 2003 4:40 pm    Post subject: Reply with quote

Hi Mukunda,

The answer is....... 65,535 !


The link below gives all the COBOL limits for COBOL for MVS & VM, VS COBOL II, and OS/VS COBOL. You'll have to search for later compiler limits.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/igymg202/APPENDIX1.7?SHELF=&DT=20001004155832

Regards, Jack.
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu Jul 31, 2003 4:41 pm    Post subject: Reply with quote

P.S.

You should also check the JCL limit on DD stmts. I think it's 256, but I'm not sure.

Regards, Jack.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu Jul 31, 2003 4:44 pm    Post subject: Reply with quote

mukunda,

The latest Enterprise COBOL programs can handle a maximum of 65,535 file names to the select file-name clause.

So check this link for Compiler limits

Hope this helps....

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu Jul 31, 2003 5:52 pm    Post subject: Reply with quote

Slade,

The maximum number of DD statements per job step is 3273, based on the number of single DD statements allowed for a TIOT (task input output table) control block size of 64K. This limit can be different depending on the installation-defined TIOT size.The IBM-supplied default TIOT size is 32K.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mukunda
Beginner


Joined: 11 Dec 2002
Posts: 46
Topics: 15

PostPosted: Fri Aug 01, 2003 8:15 am    Post subject: Reply with quote

Slade & Kolusu
Thank you very much Razz
Back to top
View user's profile Send private message
prnair
Beginner


Joined: 18 Jul 2004
Posts: 2
Topics: 0

PostPosted: Thu Sep 15, 2005 11:40 am    Post subject: Reply with quote

Kolusu,

Could you please let me know the maximum number of DD Statements possible when the TIOT size is 32K? I believe it is not (3273/2) ~ 1636, because one of our jobs is abending with around 500 datasets.

Regards,
Pradeep.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu Sep 15, 2005 11:59 am    Post subject: Reply with quote

Quote:

Could you please let me know the maximum number of DD Statements possible when the TIOT size is 32K? I believe it is not (3273/2) ~ 1636, because one of our jobs is abending with around 500 datasets.


Check the 5th posting by me in this topic to find out the limit which shows the relationship between the size of the TIOT and the maximum number of DDs allowed.

http://www.mvsforums.com/helpboards/viewtopic.php?t=2256&highlight=tiot

The Abend you are getting might be due a different reason. Are you getting s878 error?

If so check this link

http://mvsforums.com/helpboards/viewtopic.php?t=3583&highlight=s878

If it is different error then post the complete error messages.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
prnair
Beginner


Joined: 18 Jul 2004
Posts: 2
Topics: 0

PostPosted: Fri Sep 16, 2005 11:07 am    Post subject: Reply with quote

Kolusu,

Thank you for providing the relation between the TIOT size and the maximum number of DD's allowed. The problem with our job was that each dataset was requesting 20 units. The job ran successfully when this was removed.

Could you please post the link to the manual in which shows the relationship between the TIOT and the number of DD units?

Thank you,
Pradeep.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri Sep 16, 2005 3:53 pm    Post subject: Reply with quote

Quote:

Could you please post the link to the manual in which shows the relationship between the TIOT and the number of DD units?


Hmm the last column in the other link did show the relationship between the TIOT and the number of DD units?

Use the following to calculate the maximum number of DDs allowed per Job Step:

The TIOT Prefix, Header, and Trailer consume sixty (60) ('3C'x) bytes of the total TIOT space available to a Job Step. A DD statement requesting a single(1) unit requires twenty (20) bytes ('14'x) of TIOT space. Twenty bytes for the basic information for the first unit and an additional four bytes for the second unit and so on. In your case it requires 156(60+20+(4*19)=156) bytes for every DD as each is requesting 20 units.

You can the same information can be found in MVS Initialization and Tuning Reference (Document Number: SA22-7592-11)

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/iea2e260/4.6?DT=20050715035016

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group