z/OS ISPF Services Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


TBTOP—set the row pointer to the top

z/OS ISPF Services Guide
SC19-3626-00

The TBTOP service sets the current row pointer (CRP) to the top of a table, ahead of the first row.

Command invocation format

Read syntax diagramSkip visual syntax diagram
>>-ISPEXEC--TBTOP--table-name----------------------------------><

Call invocation format

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPEXEC--(buf-len,--buffer);--------------------------><

or

Read syntax diagramSkip visual syntax diagram
>>-CALL--ISPLINK--('TBTOPbbb'--,--table-name);-----------------><

Parameters

table-name
Specifies the name of the table to be used.
buf-len
Specifies a fullword fixed binary integer containing the length of "buffer".
buffer
Specifies a buffer containing the name of the service and its parameters in the same form as they would appear in an ISPEXEC call for a command procedure.

Return codes

These return codes are possible:
 0
Normal completion.
12
Table is not open.
20
Severe error.

Example

For the table TELBOOK, move the current row pointer (CRP) to the row immediately before its first row.
ISPEXEC TBTOP TELBOOK
Set the program variable BUFFER to contain:
TBTOP TELBOOK
Set program variable BUFLEN to the length of the variable BUFFER. Issue the command:
CALL ISPEXEC (BUFLEN, BUFFER);
or alternately
CALL ISPLINK ('TBTOP   ','TELBOOK ');

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014