Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Copy Records from a Non-VSAM Data Set into an Entry-Sequenced VSAM Cluster, Then Print the Records: Example 4 z/OS DFSMS Access Method Services Commands SC23-6846-01 |
|
The first 15 records from a non-VSAM data set, EXAMPLE.NONVSAM,
are copied into an entry-sequenced cluster, KRL.EXAMPLE.ESDS1. If
the records are copied correctly, the cluster's records are printed
in hexadecimal format. If the records are not copied correctly, the
non-VSAM data set's first 15 records are printed in character format.
Job control language statement:
Hint: If the AMP=(BUFND=n) parameter were specified, performance would improve when the data set's records were accessed. In this example, the BUFND default is taken because only 15 records are being processed. The REPRO command copies the first 15 records from the source data
set, EXAMPLE.NONVSAM, into the target entry-sequenced cluster, KRL.EXAMPLE.ESDS1.
Its parameters are:
The IF ... THEN command sequence verifies that the REPRO command completed successfully before the first PRINT command runs. The IF ... THEN command sequence ends with the HEX parameter because no continuation character follows this parameter. If you want two or more access method services commands to run only when the IF statement is satisfied, enclose the commands in a DO...END command sequence. The first PRINT command prints the records in the entry-sequenced
cluster, KRL.EXAMPLE.ESDS1. Its parameters are:
The second PRINT command, which runs even if the REPRO command
was unsuccessful, prints the first 15 records of the non-VSAM data
set, EXAMPLE.NONVSAM. Its parameters are:
Figure 2. Example of
a Printed Alphanumeric Character Record
|
Copyright IBM Corporation 1990, 2014
|