Need a SORT JCL to write down records from input file, which have written '7' on 5th position.
input file:
AABL5ZZZZ
AAQL7AAAA
ZZWA76AAA
AAXC01AAA
OUTPUT
AAQL7AAAA
ZZWA76AAA
Need a SORT JCL to write down records from input file, which have written '7' on 5th position.
input file:
AABL5ZZZZ
AAQL7AAAA
ZZWA76AAA
AAXC01AAA
OUTPUT
AAQL7AAAA
ZZWA76AAA
Copyright © 2021 Jogjafile Inc.
If you don't want the records sorted you could use something like
For sorting just change the
SORT FIELDS=
statement.P.S.: The above JCL is for fixed record-length files. If you use variable record-length you have to take care of two points:
So the SYSIN would look like