PGM Name | Active / Obsolete
PGM1 Active
PGM1 Active
PGM1 Obsolete
PGM1 Obsolete
PGM2 Active
PGM2 Active
PGM2 Active
PGM2 Obsolete
In the output file, we need the count of Active & Obsolete for each program,
Code:
Pgm Name | Active Count | Obsolete Count
PGM1 2 2
PGM2 3 1
We can assume that the input file is FB with record length of 80 and sorted on Program Name.
I have managed to get count of Active or Obsolete separately with 2-3 SORT steps, but just wanted to know if this is possible in lesser no. of steps or single step?
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Glad you have it working. Sorry about the 35/30. I started to try to get the line-up done, then thought "what the heck" and forgot to UNDO before copying. Then missed that when fixing-up after the "paste". No time saved at all in the end :-)