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


DATASET—Query the Current and Original Data Set Names

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

The DATASET assignment statement retrieves these items and places them in selected variables:
  • The name of the data set into which the data currently being edited will be stored
  • The name of the data set from which the data currently being edited originated
  • The library concatenation number of the originating data set
  • The path name of the file (when editing a z/OS® UNIX file)

Syntax

Read syntax diagramSkip visual syntax diagram
Assignment statement syntax

>>-ISREDIT--(var1,var2,var3)-- = --DATASET---------------------><

var1
The name of a variable to contain the name of the data set currently being edited. The data set name is fully qualified without quotation marks (').

When editing a z/OS UNIX file, the path name of the file.

var2
The name of a variable to contain the name of the data set where the data currently being edited originated from. The data set name is fully qualified without quotation marks ('). If the data currently being edited is new, a blank is returned in this variable. If the original data is deleted, the name of the data set where the data currently being edited originated from is still returned in this variable.
var3
The library concatenation number of the original data set. If the data currently being edited is new, zeros are returned.

Return codes

0
Normal completion
20
Severe error

Examples

To place the name of the data set you are editing and the library concatenation number in the variables &CURDSN and &LIBNUM:
ISREDIT (CURDSN, ,LIBNUM) = DATASET

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014