IDMS Unload/Reload DIRECT records placement
search cancel

IDMS Unload/Reload DIRECT records placement


Article ID: 128485


Updated On:




   An IDMS database Area contains records that are defined LOCATION MODE DIRECT.
   The programs that STORE these records move -1 to DIRECT-DBKEY prior to STORE so the records are stored in a physical sequential order in the area.
   When an Unload/Reload of the area was done, which increased the page size, it was expected that the Reload utility would completely fill the new larger pages with these records, in the same order as they were in the existing area.
   However it appears that each record was stored on the same page on which it existed in the existing area so the new additional space on each page was not used during RELOAD.

  Why did the RELOAD not fill the new larger pages?


Release: IDADSO00100-18.5-ADS-for CA-IDMS


  The UNLOAD utility uses the New DMCL to determine Target Pages in the new area for each record unloaded.
   For DIRECT records, if the existing page on which they are stored exists in the New Area def in the new DMCL the target page in the new area is the same page number.

"The unloaded record's page is extracted from the dbkey and compared against the new area's page range. If the current page number is within the new page range that page becomes the target page within the new database. If the current page number is higher than or lower than the new page range the low page of the new area is selected as the target page. 

For those pages that exist in both the old and new page range, if the new pages are larger they should expect to see space remaining on those pages because only the number of records that targeted to the old page would be targeted to the new page. "

   To get the Unload/Reload to fill up the new larger pages with these DIRECT records in the same order, the easiest way to accomplish this is to assign the Area a completely different Page Range in the new DMCL,  which would cause the target page to be the Area low page for each record.

  User written unload and reload programs could be another method but could be a complex process if the records also participate in Sets.