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
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Macro Programming > 10.8 Functions and Routines for Macros

10.8 Functions and Routines for Macros

In Display 10.11, %SYSEVALF evaluated the logical comparison &NPTS<1. %SYSEVALF is a general evaluation function. On the other hand, the %EVAL function handles integer arithmetic. Many other functions are available for macro programming. %INDEX finds the position of a string in a source string. %LENGTH returns the length of an argument and checks for valid arguments. %SCAN displays a particular word in an argument. %SUBSTR extracts a substring from an argument. In a previous example, %UPCASE converted an argument to all uppercase. Display 10.17 provides a short example to illustrate some of these functions.

Display 10.17. Illustrating macro functions with log results



  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint