Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Sort Functions > Function That Sorts Character Values

Function That Sorts Character Values

Function:CALL SORTC
Purpose:To sort the values of its character arguments in ascending order.
Syntax:CALL SORTN (<of> char-1 <, ... Char-n>)
 Char-n is a character variable. If you use a variable list in the form Varl-Varn, precede the list with the word "of".
 Arguments to the CALL SORTC routine cannot be constants. You may use array references as arguments to this routine as well (see the following examples):


Examples

For these examples, c1='bad', c2='good', c3=' ', a1='b', a2='B', a3='a', and a4='A'.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial