Previous Page | Next Page

SAS Component Language Dictionary

OBSINFO



Returns information about the current row in an FSEDIT application
Category: SAS Table
Valid: FSEDIT programs only

Syntax
Example
See Also

Syntax

rc=OBSINFO(info-item);

rc

contains the return code for the operation.

Type: Numeric

info-item

is one information item from the following list:

'ALTER'

reports whether the currently displayed row can be edited:

0

The row cannot be edited. If ALTER=0 and LOCKED=0, the row is open in FSBROWSE. If ALTER=0 and LOCKED=1, the row is open in FSEDIT, but the row is locked.

1

The row can be edited. If ALTER=1 and LOCKED=0, then the row is open in FSEDIT.

'CUROBS'

reports the number of the current row:

n

The number of the row.

-1

The table is accessed using an engine that does not support row numbers.

CUROBS returns a missing value (.) when there are no rows in the table, when no rows meet the specified WHERE condition, and when you are on a deleted row.

'DELETED'

reports whether the currently displayed row is marked for deletion:

1

The row is marked for deletion.

0

The row is not marked for deletion.

'LOCKED'

reports whether the currently displayed row is locked by another user:

1

The row is locked.

0

The row is not locked.

'MODIFIED'

reports whether a value has been changed in any table column in the currently displayed row or the row is new:

1

Either column has been changed or the row is new.

0

No table columns have been changed.

'NEW'

Reports whether the currently displayed row is a new row:

1

The row is new.

0

The row already exists in the table.

Type: Character


Example

Return information for the row that is currently displayed in the FSEDIT window:

   rc=obsinfo('curobs');
   rc=obsinfo('deleted');
   rc=obsinfo('locked');
   rc=obsinfo('new');
   rc=obsinfo('modified');


See Also

CUROBS

Previous Page | Next Page | Top of Page