I've been editing and testing JCL for sometime without doing a save under ISPF Edit. I changed something and the JCL now fails (JCL Error). I know I can look in the jobs sysout using SDSF but is there a way to find out what I changed while in ISPF Edit?
Asked
Active
Viewed 63 times
2 Answers
4
There are two answers:
Providing you have not issued a Edit SAVE command then you can enter
compare * x
to see the records removed, added, or changed. If you have performed a SAVE then this will not be possible.If, and I highly recommended, you are using PDSE member generations and using the open-source PDSEGEN tool (https://github.com/lbdyck/pdsedgen), then you can issue a
compare -n
where 'n' is a previous generation.
hope this helps

Lionel B Dyck
- 552
- 2
- 9
1
For #2 - Or if you avoid PDSE's like I do, the CBT Tape PDS command has the RESTORE function where you can often find the previous member.

Tom Brennan
- 156
- 1
- 3
-
1That only works if the PDS (not a PDSE) has not been compressed. :) – Lionel B Dyck Aug 08 '23 at 11:42
-
1True, but in my experience compression was typically done only as a reaction after a PDS ran out of space. So that was rarely a problem when hunting for a previous member. – Tom Brennan Aug 08 '23 at 17:25
-
unless storage management ran a nightly compress and reorg of volumes and/or dfsmshsm migrated the dataset and then the recall was compresssed - you can't win sometimes. – Lionel B Dyck Aug 08 '23 at 20:54
-
Why the avoidance of PDSEs? – Steve Ives Aug 09 '23 at 10:20
-
1@Steve - It's personal – Tom Brennan Aug 09 '23 at 21:09
-
@TomBrennan They got a bad rep in the early 2000's, to the extent we were told not to use then when I was at Citigroup, but since IBM started shipping z/OS with them, they seem ok. Also I assume you are the author of the 3270 emulator, Vista? – Steve Ives Aug 10 '23 at 09:47
-
1@Steve Yes, that's me! – Tom Brennan Aug 10 '23 at 17:08