Follow these steps to create and run VMRGRW reports:
- Decide which product contains the information you need.
- 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.
- Log on to VMANAGER.
- Use the XEDIT command to create a new control file. Control files are explained in Chapter 2.
- Make the first statement in your program a FILE statement.
- Use conditional statements such as SELECT, IGNORE, and IF to gather the appropriate records from the input file.
- Use END IF and END STEP statements to end conditional processing and processing steps.
- Use the WRITE statement to write the desired fields to disk.
- Use the SORT statement to sort the output records.
- Use the PRINT HEADING statement to create a report heading.
- Use the PRINT statement list the fields you want to appear in the report.
- Enter file on the XEDIT command line to save your work in the control file.
- 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.
- 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.
- Enter the VMRGRW command to run your report. This command is explained in the next section.