Professional Documents
Culture Documents
Note:
Step 1 and 2 should be coded within a single job.
Use RESTART parameter for generating new generation datasets.
Explanation:
1. Firstly, I have logged on into TSO by using login id and password.
2. ISPF primary menu window was opened.
3. In command line type 3.2 for creating a PDS for JCL statement.
4. Open PDS file and create one member in edit mode and write the JCL
statement as shown in Image2.
5. Just save and submit the JCL statement and check for output in spool as
shown in Image3 and Image4.
6. Image5, shows the data is copied successfully in generation from
sequential file.
7. Again, open same PDS file with one more member in edit mode and
write code as shown in Image6 for creating second generation.
8. Just save and submit the JCL statement and check for output in spool.
9. Image7, shows the data is copied successfully in second generation from
sequential file using restart command.
Image2: Code for creating GDG base and generations
o Image1, shows manually entered data for input sequential dataset file.
o In Image2, we write the JCL statement for creating GDG base and generation as:
1. Job statement.
2. STEP01 for GDG base:
a. EXEC statement.
b. SYSPRINT statement
c. DD statement
3. STEP02 for GDG generation:
a. EXEC statement.
b. SYSPRINT statement
c. DD statement
o After the statements, save and submit the JCL.
o Check for errors in code if any then remove it else take screenshot of spool
window as output.
o For going to the Spool window, just type in command line as ‘START SD;ST’
o New screen is opened.
o Go to the last one executed JCL and check the output as shown below in Image3
and Image4.
o Image3 shows GDG Base creation successfully.
o Image4 shows GDG Generation creation successfully.
o For checking data is copied or not, open the generation in view mode and take
screenshot as Image5.
o Image5 shows data is copied successfully in generation from sequential
file.
o Open same PDS file with one more member in edit mode and write
code as shown in Image6 for creating second generation using restart
command.
o Image7 shows new GDG Generation creation successfully and data is copied
successfully in generation from sequential file using restart command.
Conclusion: Successfully Create GDG base and its generations and also copied
data from sequential file to GDG generation.