Searching remote z/OS files
Use Remote z/OS File Search to search for content in a remote data
set or data set member. Remote z/OS File Search submits a batch ISPF
Search-For request (ISPF option 3.14) to a connected remote system and returns search results to the
Remote z/OS Search view.
Before you begin
- Connect to a remote system.
- To support logging search requests in the audit.log file, the server must be version 9.1 or later.
Procedure
Results
The client processes a Remote z/OS® File Search as follows:
- The client generates a batch ISPF Search-For request and submits it to the remote system. The JOB card generated in the JCL is retrieved from the property group
that is associated with the MVS Files subsystem or the default JOB card when no property group is
associated.
The JCL is submitted with the code page of the MVS™ Files subsystem of the target connection. If the code page is IBM®-037 and the search string is $£àé, for example, the last 2 characters are handled as unknown characters. If the code page is IBM-1141 (French), they are converted correctly to $#@{, (that is, 0x5b, 0x7b, 0x7c, 0xc0 in their hexadecimal representation). If the MVS Files subsystem is set to a DBCS code page, the ISPF Search-For request can find the results for a DBCS search string.
- When the tracing level for com.ibm.ftt.rse.mvs.client is set to FINEST on the Tracing preference page, the JCL for the command is written to the .trace file.
- When the job completes successfully, the client parses the search
results and writes them to the
SUPERC.OUTDD
job data set. - After parsing a successful result, the client purges the job. If the return code is greater than 1, the job is not purged. If the tracing level for com.ibm.ftt.rse.mvs.client is set to FINEST, the job ID, return code, and purge status are written to the .trace file.
- If the job fails, the client submits a next JCL if it exists. The client displays a warning message that lists the job IDs of any failed requests.
- The search results are displayed in the Remote z/OS Search results view using the same format as Remote z/OS Search. The result view is updated after parsing the JCL output for each data set. When the search request generates a large number of search results, the client might take longer to download and parse the results. You can use the Add Query menu item to save the search query to the My Favorites folder of the MVS Files subsystem.
When the server is version 9.1 or later, the server adds
these entries to the audit.log file:
- Before submitting the JCL: <user_id>,SEARCH_FILE,<search_dataset_name>,<search_query_string>
- After the job completes: <user_id>,SEARCH_FILE,<search_dataset_name>,<search_query_string>,<return_code>
Example
//USERID1 JOB ,
// MSGCLASS=H,MSGLEVEL=(1,1),TIME=(,4),REGION=144M,COND=(16,LT)
//SUPERC EXEC PGM=ISRSUPC,
// PARM=('SRCHCMP,NOSEQ,ALLMEMS,ANYC')
//OUTDD DD SYSOUT=*
//NEWDD DD DISP=SHR,DSN=USERID.TEST
//SYSIN DD *
SRCHFOR 'A'
SRCHFORC 'B',+
SRCHFORC 'C''D',+2
SRCHFOR 'EF G',W
SELECT MEMBER1,MEMBER2,MEMBER3
/*
//