Exporting search results
You can export z/OSĀ® search results to a text file, which you can then import into a spreadsheet program.
Before you begin
About this task
Restriction: The search result export wizard
places some restrictions on the content you can export. If the Remote
z/OS Search view contains a list of partitioned data sets
and data set members, then you can export only the file information
about the partitioned data sets. You cannot export file information
about the data set members. If you select data set members in the Remote
z/OS Search view and click the export icon, a warning message
is displayed.
Exporting all results
Procedure
Exporting selected results
Procedure
Formatting an export file
Procedure
To change the default data selection and format options for a search result export file:
Results
"File name" "Extension" "Lock owner"
"HLQ.SOURCE.COBOL/MYFILE.cbl" "cbl" "userid1"
"HLQ.SOURCE.PLI/YOURFILE.pli" "pli" "userid2"
"HLQ.SOURCE.COBOL/FILE3.cbl" "cbl" ""
The
following example illustrates an export file that contains content strings with default data
selection and export file format options. The first row is the header row and the remaining three
rows contain search result
data."Name" "Extension" "Transfer" "Line" "Text"
"USER33.ZUNIT.PLI/PLITC001.pli" "pli" "text" "7" "| Component: IBM ZUnit (z/OS Automated Unit Testing Framework) |"
"USER33.ZUNIT.PLI/PLITC001.pli" "pli" "text" "9" "| File: Enterprise PL/I ZUnit Test Case |"
The
following example illustrates an export file that contains file information, content strings, and
preview
lines."Name" "Extension" "Line" "Text"
"HLQ.SOURCE.COBOL/FILE4.cbl" "cbl" "text" "50" "500 ---MATCHED CONTENT STRING LINE--- "
# 470 ---LINE BEFORE THE MATCHED LINE---
# 480 ---LINE BEFORE THE MATCHED LINE---
# 490 ---LINE BEFORE THE MATCHED LINE---
#> 500 ---MATCHED CONTENT STRING LINE---
# 510 ---LINE AFTER THE MATCHED LINE---
# 520 ---LINE AFTER THE MATCHED LINE---
# 530 ---LINE AFTER THE MATCHED LINE---