How to execute 2nd and 4th steps among 5 steps in JCL proc?
Detailed Explanation
The following are the steps to accomplish the task:
//job1 job a123 'name' class=a
// restart=step002
//step001 exec pgm=prog1
//step002 exec pgm=prog2
//step003 exec pgm=prog3 cond=(0 le)
//step004 exec pgm=prog4
//step005 exec pgm=prog5 cond=(0 le)
//step006 exec pgm=prog6
There are 3 duplicate records in a file. How to remove 2 duplicate records and copy only one using Job Control Language?
The following are the steps to accomplish the task:
1. Sort the PS using JCL SORT utility and update the PS file.
2. Find the duplicates using XSUM .
3. Write the duplicates alone in a separate PS.
4. Take the separate PS
5. Give the control condition inside SYSIN DD * as , sort fields with skiprec(3), since only the 3rd one is needed to copy.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts