Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

JCL & VSAM :: RE: fuzzy compare

$
0
0
Author: steve-myers
Posted: Thu Mar 30, 2017 3:50 pm (GMT 5.5)

NO!

JCL has no ability to analyze or alter data. Period. Full stop. End of story. The sole purpose of JCL is to specify the environment in which batch programs programs run.

Now, are there any programs to perform a "fuzzy" find as you describe? One problem is there are many definitions of a "fuzzy" find. The example in the extended query, for example, can easily be written into a program, but it is so limited I rather doubt anyone wrote such a program.

JCL like this will perform the task you propose.
Code:
//A       EXEC PGM=IKJEFT01
//SYSTSPRT DD  SYSOUT=*
//SYSTSIN  DD  *
e 'your data set' data nonum
v
f * 999999 /aaa/ ALL
end


This JCL runs a program: IKJEFT01, the TSO terminal monitor program, to run a TSO command (another program) to find (another program) all occurrences of the aaa string in the data set.


Viewing all articles
Browse latest Browse all 8500

Trending Articles