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

Max No of DD Statements in concatenation


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

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Wed Dec 15, 2004 10:51 am
Reply with quote

hi ppl,

what is the max. no of DD statements that can used in concatenation?
Back to top
View user's profile Send private message
unna

New User


Joined: 15 Oct 2004
Posts: 17

PostPosted: Wed Dec 15, 2004 1:22 pm
Reply with quote

Hi,


255 Sequential datasets can be concatenated together

and 16 PDS can be concatenated together.

Have a nice day!
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Dec 18, 2004 4:07 pm
Reply with quote

unna, would you please be so kind to cite your source for your post (it is incorrect)?

According to the "MVS JCL Reference Guide (SA22-7597-06)", page 12-1:

"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."
Back to top
View user's profile Send private message
unna

New User


Joined: 15 Oct 2004
Posts: 17

PostPosted: Mon Dec 20, 2004 6:07 pm
Reply with quote

Hi Superk,

Thank You for pointing out.

By the way, the question is

hi ppl,

what is the max. no of DD statements that can used in concatenation?[/b]

for this i had given the answer.

Kindly,clarify if iam wrong again---

Have a nice day!
Back to top
View user's profile Send private message
vishal_09

New User


Joined: 16 Feb 2005
Posts: 6
Location: hyderabad

PostPosted: Thu Feb 17, 2005 8:35 am
Reply with quote

hi .
maximum no of dd staement in jal are 3273........
i concatination u can use only 255 dd staements
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Feb 18, 2005 2:30 am
Reply with quote

Folks, again, it would be nice if you would cite your sources for your answers.

I just finished running a job with one step that had 1000 CONCATENATED DD statements without any problems. I might go back and try it again with 3273 CONCATENATED DD statements. icon_mad.gif
Back to top
View user's profile Send private message
muthukumarapandian

New User


Joined: 08 Oct 2004
Posts: 42
Location: chennai, india

PostPosted: Sat Feb 26, 2005 8:01 pm
Reply with quote

Hi meetsrk,

max dd sttements are 3273 and it depends on TIOT control block size specified at the time of installation
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Feb 27, 2005 2:14 am
Reply with quote

Hi People,

PLEASE!!! The ques was:
Quote:
what is the max. no of DD statements that can used in
*****************
*CONCATENATION*?
*****************
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1210
Location: India

PostPosted: Mon Feb 28, 2005 10:36 pm
Reply with quote

Dear MMWife,

The maximum number of DD statements per job step is 3273. The limit of 3273 is applicable to the concatenation also. But it depends on the pgm that is going to read the concatenated datasets. For example the SEARCH Utility program can only read upto 4 concatenated datasets.

The limit 3273 is also based on the number of single DD statements allowed for a TIOT as Superk mentioned.

Your installation may not allow you to concatenate upto 3273 DDs, coz the IBM-supplied default TIOT size is 32K. You need 64K TIOT to accept 3273 DDs in a single job.

So if you have 64K TIOT, you can use 3273 DDs per job (may be in a single step).

If you have 32K TIOT, you can concatenate upto 1635 DDs.

For 16K, upto 819 DDs supported, I hope...

Quote:

255 Sequential datasets can be concatenated together and 16 PDS can be concatenated together
But in some books, they have mentioned like this. (It's wrong, as for as I know)
Back to top
View user's profile Send private message
dharmendra_kp

New User


Joined: 10 Mar 2005
Posts: 33
Location: Lewiston

PostPosted: Tue Mar 22, 2005 4:35 pm
Reply with quote

hi all!
Can any one tell How / where do we use concatenation in real time .
PLZ illustrate with an example.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Aug 26, 2005 4:08 pm
Reply with quote

I found a reference that hopefully answers this question. The document is "z/OS V1R6.0 DFSMS: Using Data Sets":

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D430/CCONTENTS?DT=20040624112123

Section "3.6.3 Concatenating Data Sets Sequentially":

Quote:

The system can retrieve two or more data sets and process them successively as a single sequential data set. This is called sequential concatenation. The number of data sets that you can concatenate with sequential concatenation is variable. It is governed by the maximum size of the TIOT option. The system programmer controls the TIOT size with the option ALLOCxx member of SYS1.PARMLIB. The smallest TIOT value allows 819 single-unit DD statements or 64 DD statements having the maximum number of units.

When data sets are sequentially concatenated, your program is open to only one of the data sets at a time. Concatenated data sets cannot be read backward.

A sequential concatenation can include sequential data sets, PDS members, PDSE members, and UNIX files. With sequential concatenation, the system treats a PDS, PDSE, or UNIX member as if it were a sequential data set.

Rule: You cannot concatenate VSAM data sets.


And section "3.7.8 Concatenating PDSs":

Quote:

3.7.8.1 Sequential Concatenation

To process sequentially concatenated data sets, use a DCB that has DSORG=PS. Each DD statement can include the following types of data sets:


Sequential data sets, which can be on disk, tape, instream (SYSIN), TSO terminal, card reader, and subsystem

UNIX files

PDS members

PDSE members


You can use sequential concatenation (DSORG=PS in DCB) to sequentially read directories of PDSs and PDSEs.

3.7.8.2 Partitioned Concatenation

Concatenated PDSs are processed with a DSORG=PO in the DCB. When PDSs are concatenated, the system treats the group as a single data set. A partitioned concatenation can contain a mixture of PDSs, PDSEs, and UNIX directories. Partitioned concatenation is supported only when the DCB is open for input.

There is a limit to how many DD statements are allowed in a partitioned concatenation. Add together the number of PDS extents, the number of PDSEs, and the number of UNIX directories in the concatenation. The sum cannot exceed 255. For example, you can concatenate 15 PDSs of 16 extents each with 8 PDSEs and 7 UNIX directories ((15 x 16) + 8 + 7 = 255 extents).
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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Relate COBOL statements to EGL statement All Other Mainframe Topics 0
No new posts Embeding DB2 sql statements in scirpt... DB2 7
No new posts filter COMMIT/ROLLBACK statements DFSORT/ICETOOL 13
No new posts Rexx to create VSAM define statements CLIST & REXX 10
Search our Forums:

Back to Top