List of all files with specific keywords

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Posts: 2
Joined: Thu Jan 12, 2017 12:34 am

List of all files with specific keywords

Post by anweste » Thu Jan 12, 2017 12:56 am

I need a list of all files who contains specific keywords.
And this for a completed user bibliothek.

That means if a user has 10 bibliothek and 3 files in his sser profile.
I want get a list of all files (full qualified name) who contains the keywords for example 'Test' and 'CALL'.

I do not kow how to do this in general.
I split it in two parts.

Part one
I have created a job that creats a file with all filenames und bibliotheks of the user. Using LISTCAT

For example:

Part two
I have create a job that creats a file with the name of the files how contains the keyword 'Test' and 'Call'
Using Filemanager

My problem is the part in the middle.
Filemanger only accepts a full qualified filename.
So i am searching for how to call the second JCL for each entry of the fileoutput from Step1.

Any idea?

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others