Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

When to use AMP parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
lagneshp

New User


Joined: 15 Aug 2009
Posts: 29
Location: Chennai

PostPosted: Thu Aug 20, 2009 4:51 pm    Post subject: When to use AMP parameter
Reply with quote

Hi,
Can any one tell me that in which case (which scenario) we will be using the AMP parameter.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 20, 2009 4:52 pm    Post subject:
Reply with quote

Is that a COBOL parameter, or perhaps a JCL parameter.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Aug 20, 2009 8:37 pm    Post subject:
Reply with quote

Hello,

Where did you learn of this AMP parameter? How was it used?

If you post an example, there may be replies that are more useful. . .
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu Aug 20, 2009 8:43 pm    Post subject: Reply to: When to use AMP parameter
Reply with quote

Quote:
Can any one tell me that in which case (which scenario) we will be using the AMP parameter.

never, unless suggested by knowledgeable storage people
see the JCL reference manual for the syntax
look but do not use icon_cool.gif
Back to top
View user's profile Send private message
lagneshp

New User


Joined: 15 Aug 2009
Posts: 29
Location: Chennai

PostPosted: Thu Aug 20, 2009 9:31 pm    Post subject:
Reply with quote

This is a JCL parameter.

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.

syntax for specifying buffer space is

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

My Question is, When we use this AMP parameter..........
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu Aug 20, 2009 9:33 pm    Post subject: Reply to: When to use AMP parameter
Reply with quote

see the previous post
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Thu Aug 20, 2009 10:17 pm    Post subject:
Reply with quote

Short answer: when you need the AMP parameter, you use it.

How do you tell when you need it? Enrico's suggestion is best -- if you're having any issues, contact your storage management people. They may tell you to add the AMP parameter (and if so, they'll generally tell you the BUFND and BUFNI values to use since the precise values depend upon how the program is accessing the VSAM file).
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Aug 21, 2009 11:37 am    Post subject:
Reply with quote

Yes, indeed. In some cases adding these parameters can have an adverse effect, especially for skip - sequential processing.

Know what your program is doing before playing around with it.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Aug 21, 2009 3:24 pm    Post subject:
Reply with quote

AMP is most often used to complete information about a VSAM file that is being processed via the ISAM-to-VSAM data set.

If the System Managed Storage (SMS) facility is in use, code the RECORG parameter instead of AMP.

Other use of AMORG, indicates this is a VSAM data set - use only if the data set is not fully defined at the start of the job step.
Back to top
View user's profile Send private message
lagneshp

New User


Joined: 15 Aug 2009
Posts: 29
Location: Chennai

PostPosted: Tue Aug 25, 2009 7:07 pm    Post subject:
Reply with quote

Thanks to all for your valuable informations
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Aug 25, 2009 7:38 pm    Post subject:
Reply with quote

You're welcome . . . icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us