Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

7.1.28 MIN



The MIN function returns the content of the argument that contains the minimum value.

The function type depends on the argument types, as follows:


   Argument Type                           Function Type
   Alphabetic                              Alphanumeric
   Alphanumeric                            Alphanumeric
   All arguments integer                   Integer
   Numeric (some arguments can be          Numeric
   integer)



    ___ Format _____________________________________________________________ 
   |                                                                        |
   |                      <____________                                     |
   | >>__FUNCTION MIN__(____argument-1_|__)______________________________>< |
   |                                                                        |
   |________________________________________________________________________|
argument-1
Must be class numeric, alphanumeric, or alphabetic.


X If more than one argument-1 is specified, the combination of alphabetic
X and alphanumeric arguments is allowed.

The returned value is the content of argument-1 having the least value. The comparisons used to determine the least value are made according to the rules for simple conditions. For more information, see "Conditional Expressions" in topic 6.1.6.

If more than one argument-1 has the same least value, the leftmost argument-1 having that value is returned.

If the type of the function is alphanumeric, the size of the returned value is the same as the size of the selected argument-1.

Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.