SYSIN
SYSIN
The SYSIN DD statement is used to provide the input source for programs or utilities in the JCL. It is typically used to provide control statements or data to the program that is being executed.
The SYSIN is used to specify the dataset name for the input source that contains the control statements or data. The dataset can be either a partitioned dataset or a sequential dataset.
SYSIN DD statement is also called as instream DD statement.
Syntax -
//SYSIN DD *[|DATA]
data-input
/*
(or)
//SYSIN DD DSN=input.dataset.name,DISP=SHR
- //SYSIN - is the DD (Data Definition) statement label, which is used to identify the data set definition.
- DSN=input.dataset.name - specifies the name of the input data set. input.dataset.name should be replaced with the actual data set name.
Examples -
Scenario - SYSIN statement with a dataset.
//SYSIN DD DSN=input.data.set,DISP=SHR