You may want to look at NCHGT and OCHGT process statements of SuperC compare utility https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.f54u200/ispu2220.htm . '?' can be used to match one character
The ideas is that you can 'mask' fields in the old and new files before performing the comparison. Here is a example: CMPCOLM 10:137 NCHGT 'at ????-??-?? ??:??:??','at XXXX-XX-XX XX:XX:XX' OCHGT 'at ????-??-?? ??:??:??','at XXXX-XX-XX XX:XX:XX' David Dai From: "Peter Morrison" <[email protected]> To: [email protected] Date: 26/10/2018 10:19 AM Subject: Comparison Routine Sent by: "IBM Mainframe Discussion List" <[email protected]> Hello, I am trying to find details on a comparison routine that can be used in z/OS, that allows you to compare a field against a pattern similar to the SQU 'LIKE' operator - where '*' matches 0 or more characters and '?' matches just one. I believe there is such a publicly available routine in z/OS but I cannot find anything. Anyone have any ideas? Peter Morrison ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN Click https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ== to report this email as spam. Fundi Software Pty Ltd 2018 ABN 89 009 120 290 This message has been scanned for malware by Websense. www.websense.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
