Chapter Contents

Previous

Next
NEXTWORD

NEXTWORD



Deletes the current word and advances to the next word in the current command

Category: Command


Syntax
Details
Example
See Also

Syntax

CALL NEXTWORD();


Details

A word is the text at the current position up to the next blank or semicolon. A semicolon denotes the end of a command in addition to the end of a word. NEXTWORD is used with WORD and is usually used in conjunction with CONTROL ENTER, CONTROL ALWAYS, or CONTROL ALLCMDS.

If the command line contains two or more commands separated by semicolons, then only the first command on the command line is executed during the current execution of the MAIN section. The next command is executed when control is returned to the program or when another entry is displayed, as in the use of the DISPLAY routine.


Example

If a user issues the command AXX BXX CXX DXX, the succession of words is as follows:


Initial After 1st
NEXTWORD
After 2nd
NEXTWORD
word(1) AXX BXX CXX
word(2) BXX CXX DXX
word(3) CXX DXX blank


See Also

NEXTCMD

WORD

WORDTYPE


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.