DROPNOTE Function


DROPNOTE Function

Deletes a note marker from a SAS data set or an external file

Category: SAS File I/O

Category: External Files

Syntax

DROPNOTE ( data-set-idfile-id , note-id )

Arguments

data-set-idfile-id

  • specifies the identifier that was assigned when the data set or external file was opened, generally by the OPEN function or the FOPEN function.

note-id

  • specifies the identifier that was assigned by the NOTE or FNOTE function.

Details

DROPNOTE deletes a marker set by NOTE or FNOTE. It returns a 0 if successful and ‰  0 if not successful.

Examples

This example opens the SAS data set MYDATA, fetches the first observation, and sets a note ID at the beginning of the data set. It uses POINT to return to the first observation, and then uses DROPNOTE to delete the note ID:

 %let dsid=%sysfunc(open(mydata,i));  %let rc=%sysfunc(fetch(&dsid));  %let noteid=%sysfunc(note(&dsid));  more macro statements  %let rc=%sysfunc(point(&dsid,&noteid));  %let rc=%sysfunc(fetch(&dsid));  %let rc=%sysfunc(dropnote(&dsid,&noteid)); 

See Also

Functions:

  • 'FETCH Function' on page 523

  • 'FNOTE Function' on page 548

  • 'FOPEN Function' on page 550

  • 'FPOINT Function' on page 554

  • 'NOTE Function' on page 671

  • 'OPEN Function' on page 690

  • 'POINT Function' on page 715




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net