If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DCB in SYSCOPY of Imagecopy job

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-07, 16:02
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
DCB in SYSCOPY of Imagecopy job

Hi,

This is about DB2 V7 in z/OS

Why is a DCB parameter needed in SYSCOPY DD for an Imagecopy job? e.g.

DCB=(MODELDCB,RECFM=FB,BLKSIZE=0,LRECL=4096,BUFNO= 30,DSORG=PS)

I have seen that in some places they use it and in some places they don't. Utility guide doesn't mention that it is needed, so my assumption was that copy utility decides the LRECL etc.

The second part of the question is, what is the 'MODELDCB' specified above? I suppose it is shop specific, what does it do?

The third part of the question is, how to decide the LRECL of a SYSCOPY dataset? Clearly it is more than the record length of the table here. So whats the criteria?


Thanks in advance for any effort to answer these!
Reply With Quote
  #2 (permalink)  
Old 02-09-07, 05:33
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
You do not need any DCB= specification for //SYSCOPY DD.
The necessary values are set by DB2

MODELDCB dsname tells JES to use the DCB-values from dsname as a template.
There is no need to use this parameter here

Imagecopy works on pages of tablespaces. Therefore LRECL=4096 as a page is 4K.
Reply With Quote
  #3 (permalink)  
Old 02-11-07, 22:55
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
umayer,

About the LRECL, I knew imagecopy works at page level but did not know that each of the individual records in an IC file correspond to a single page in tablespace and hence need to have the record length same as page size. Although I did suspect it since the page size in the Tablespace in question is indeed 4K.

Thanks for your input!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On