I have a record of 10 pages and every page has policies and details, policies may be the same or different.
i want to add 1 line at the top of policies and 1 at the end but I have to compare the policies, if policies are matching/are similar. if polcies are matching then I have to add 1 line at the top and 1 at the end of similar policies.
Welcome!
You could have searched this forum or Google and provided input and expected output data .
ibmmainframes.com/about60729.html
I would let you search for trailer and twist the card.
Suppose the below one is an input file where students' details are misplaced/unordered.
We want to compress the student's details by the student.
Like: the students1 has all records ( name, mob no. ) then student2 will start, and so on... also we want to write a single line ( start record ) before the student's details & after the end of the record ( end record )
let me know how to write the jcl sort logic.
Input File:
00001 student1 dept1 560
Name
00003 student3 dept2 520
Name
00004 student4 dept1 540
Name
Mob. No.
00005 student1 dept1 500
Mob. no.
00002 student3 dept3 510
Mob. No.
00006 student2 dept3 550
Mob. no.
00008 student2 dept1 530
Name
Expected O/P:
Start Record
00001 student1 dept1 560
Name
Mob. no.
End Record
Start Record
00002 student2 dept3 550
Name
Mob. no.
End Record
Start Record
00003 student3 dept2 520
Name
Mob. no.
End Record
Start Record
00004 student4 dept1 540
Name
Mob. No.
End Record