Follow these steps to create and run VMRGRW reports:

  1. Decide which product contains the information you need.
  2. Refer to the product data definition tables later in this book and determine the file format, file name, and fields you need for your report.
  3. Log on to VMANAGER.
  4. Use the XEDIT command to create a new control file. Control files are explained in Chapter 2.
    1. Make the first statement in your program a FILE statement.
    2. Use conditional statements such as SELECT, IGNORE, and IF to gather the appropriate records from the input file.
    3. Use END IF and END STEP statements to end conditional processing and processing steps.
    4. Use the WRITE statement to write the desired fields to disk.
    5. Use the SORT statement to sort the output records.
    6. Use the PRINT HEADING statement to create a report heading.
    7. Use the PRINT statement list the fields you want to appear in the report.
    8. Enter file on the XEDIT command line to save your work in the control file.
  5. Link to the minidisk containing the data for the report. The Minidisk/vaddr column of the Product Data Definition Table provides the addresses for the minidisks you use.
  6. Verify that an external sort routine, with a filename of SORT and a filetype of TEXT, is available on an accessed minidisk or in a TXTLIB. The sort routine must be callable from an assembler program.
    • CMS SORT cannot be used because it is not callable from an assembler program (i.e., VMRGRW), and it runs in the user area, where VMRGRW runs.
    • You can use any sort routine that is callable from an assembler program and that has a filetype of TEXT. CA VM:Sort provides a TEXT file that you can use.
  7. Enter the VMRGRW command to run your report. This command is explained in the next section.