HLASM Toolkit Feature User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


z/OS JCL example

HLASM Toolkit Feature User's Guide
GC26-8710-10

Figure 1 shows simplified z/OS JCL to run the SuperC Search. This example is supplied with SuperC in the sample PDS (default is ASM.JMQ415A.SASMSAM2) as member ASMFMVS1.

Before running this example, edit the lines highlighted by numbers (such as  1 ) as described in the instructions following the example listing.
Figure 1. Sample z/OS JCL to run the SuperC search
⋮
/*
/* Run the search with these options (see  1  and  6 )
/*
//RUN      EXEC PGM=ASMFSUPC,REGION=4M,PARM='SRCHCMP process_options'      1 
/*
//STEPLIB  DD   DSN=#hlq.SASMMOD2,DISP=SHR                                 2 
/*
/* Define data set to be searched
/*
//NEWDD    DD   DSN=search_file,DISP=SHR                                   3 
/*
/* Direct listing data set to SYSOUT
/*
//OUTDD    DD   SYSOUT=*                                                   4 
//SYSIN    DD   *
SRCHFOR 'search_string'                                                   5 other_process_statements                                                   6 
⋮
/*
//
 1 
Replace process_options with any process options you want to use to customize how SuperC performs the search or formats the listing.

For a description of each process option, see Process options.

For example:
PARM='SRCHCMP DPCBCMT COBOL'
instructs SuperC to perform a search:
  • Ignoring COBOL comment lines. (Process option DPCBCMT ignores lines with an "*" in column 7.)
  • Ignoring columns 1 to 6. (Process option COBOL ignores columns 1 to 6 which are assumed to be sequence numbers.)
 2 
Replace #hlq with the high level qualifier where SuperC is installed (default load library is ASM.JMQ415A.SASMMOD2).
 3 
Replace search_file with the item to be searched. This can be:
  • A sequential data set
  • A partitioned data set
  • A member of a partitioned data set
  • A VSAM data set
  • A concatenated data set

If you specify a partitioned data set (PDS) name for search file, SuperC searches all members in the PDS.

To restrict the search of a PDS to selected members only, use the SELECT process statement. For example, the following process statement:
SELECT TEST1,TEST2
instructs SuperC to search only members TEST1 and TEST2 of the PDS specified by search file.

For more information about the SELECT process statement, see Select PDS members (z/OS).

 4 
The listing data set, listing the results of the comparison. For example listings, see Understanding the listings.
 5 
Replace search_string with a string that you want to search for. For information about specifying search strings, see Search strings in the input file.
 6 
Insert any other process statements (one per line) that you want to use.
For example, the following process statement:
DPLINE 'ignore this line'
instructs SuperC to exclude from the search any lines containing the specified string ("ignore this line").

For more information about process statements, see Process statements.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014