Executing an application
The following JCL job executes an application program called SAMPLE. SAMPLE performs some kind of application-oriented processing on the dataset object, DIV.SAMPLE, that was allocated in Creating a linear data set.
When SAMPLE executes, it issues a DIV macro specifying to the IDENTIFY service the name of the data-in-virtual object that it will process. To identify the data set, SAMPLE specifies the ddname, DYNAMIC, on the DDNAME parameter of the DIV macro.
The system then connects the actual data set name, DIV.SAMPLE,
with the program that will process it. The link between the application
program and the data set is the name, DYNAMIC, which appears in both
the application and the JCL.
//*
//*
//* EXECUTE A DATA-IN-VIRTUAL APPLICATION
//*
//SAMPLE EXEC PGM=SAMPLE
//STEPLIB DD DSN=DIV22.LOAD.JOBS,DISP=SHR
//DYNAMIC DD DSN=DIV.SAMPLE,DISP=SHR
//SYSABEND DD SYSOUT=*
/*