Chapter Contents |
Previous |
Next |
Organizational Chart: _gotoNode |
Syntax | |
Example |
Syntax |
CALL NOTIFY (orgchart-name, '_gotoNode', node-id); |
Argument | Type | Description |
---|---|---|
node-id |
N | specifies the numeric identifier of the node to go to; if the node identifier is invalid, no action is taken. |
Example |
This example displays the node containing the text string 'Smith':
/* Make a list. */ mylist = makelist(0); /* Add 'Smith' to the list. */ mylist = insertc(mylist,'Smith',1,'text'); /* Use the _search method and MYLIST to find */ /* the node containing 'Smith'. */ call notify('org1','_search_',nodeid,'text /s',mylist); /* Delete the list. */ rc = dellist(mylist); /* If a valid node has been found, display it. */ if (node-id ne 0) then call notify('org1','_goto_node_', nodeid); else _msg_ = 'Node not found.'
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.