z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


DATAID—Query Data ID

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The DATAID assignment statement retrieves the data ID for the data set currently being edited and places it in a variable.

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(varname)-- = --DATAID-----------------------------><

varname
The name of a variable containing the data ID of the data set currently allocated for editing.

Description

The data ID is created by the LMINIT service to identify a data set.

If you begin an edit session with a data ID, the data ID is returned when you issue this command. If you begin an edit session without a data ID, then an LMINIT service obtains a data ID and returns it. On return from a top-level macro, the editor releases any data ID it has obtained.

For further information about the use of library access services, refer to the z/OS ISPF Services Guide.

Return codes

0
The data ID returned was passed to the editor
4
Data ID was generated by and is freed by the editor
8
A previously generated data ID was returned
20
Severe error

Examples

To store the data ID in variable &DID, and then find the member MEM1 of that data set by using the LMMFIND library access service:
ISREDIT (DID) = DATAID
ISPEXEC LMMFIND DATAID(DID) MEMBER(MEM1)
IF &LASTCC = 0 THEN ...

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014