What is AMP parameter and its use e.g. AMP='BUFNI=10,BUFND=10' means what?

Showing Answers 1 - 5 of 5 Answers

nisanth_ts

  • Apr 15th, 2008
 

hi .

AMP parameter is used to specify the buffer space.BUFNI means the number of index buffers and BUFND is the number of data buffers.

syntax for specifying buffer space is

//buf  dd   .....AMP=('BUFND=10,BUFNI=10')

i hope you are clear with this.

Nisanth T.S
Bangalore
         

  Was this answer useful?  Yes

ameer

  • Jun 4th, 2008
 

This parameter can be used to request the buffer space for the datasets usually VSAM datasets. when the datasets are accessed they are accessed only in terms of blocks for example when accessing a record from a dataset, the record is read from a block and when all the records from the block are read then the next block is accessed and so on. so as to place these blocks we require buffers which are specified using this parameter. here BUFNI will hold the Index part and BUFND will hold the data part of the VSAM file.

Sudak_2008

  • Oct 21st, 2008
 

Could you please tell why this AMP parameter is not always mandatory whenever we access a VSAM file? Because I sometimes see it is used with some VSAM files and sometimes not.

  Was this answer useful?  Yes

memays

  • Feb 18th, 2009
 

The AMP= parameter is only used for VSAM files and mainly affects performance.

When VSAM files are defined via the DEFINE CLUSTER statement using IDCAMS, certain parameters describe the physical format of the file, while others define default performance charateristics of the file depending on how it will be most often used (e.g. Sequentially read, Randomly Read, Update and Delete activity, etc.).   

The AMP (Access Method Parameters) option allows these performance options to be overridden at runtime in the event that the file is going to be processed in a different manner than normal.   

In the case of BUFNI(Index Buffers)  and BUFND(Data Buffers), these parameters affect the amount of buffer space reserved for frequently used data in memory, to avoid the repeated I/O's to reread data that has already been read.   These buffers can greatly aid performance when a file is read sequentially, using a concept known as "Anticipated Read",  which causes not only the requested record to be read, but also the "anticipated" next records in the file. When the next record is requested, it is already in a buffer(memory) and the system does not need to perform an I/O to get it.

In an online(CICS) environment, these parameters become very important, as different CICS applications may process the same VSAM file in different manners. 

If you are processing the file in the manner intended by whoever created the original definition, then the AMP overrides should not be needed.  

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.