Skip to content

Instantly share code, notes, and snippets.

@bdietz400
Created January 2, 2025 14:56
Show Gist options
  • Save bdietz400/39ab14fa942d8614e7cbf45e9f72a201 to your computer and use it in GitHub Desktop.
Save bdietz400/39ab14fa942d8614e7cbf45e9f72a201 to your computer and use it in GitHub Desktop.
Fin "orphaned" Journal Receivers
SELECT Jr.Journal_Receiver_Library,Jr.Journal_Receiver_Name,Jr.Size
,Jr.Descriptive_Text,Jr.Journal_Library,Jr.Journal_Name
,Jr.Attach_Timestamp,Jr.Detach_Timestamp
FROM Qsys2.Journal_Receiver_Info Jr
WHERE NOT EXISTS (SELECT J.Journal_Name
FROM Qsys2.Journal_Info J
WHERE J.Journal_Library = Jr.Journal_Library
AND J.Journal_Name = Jr.Journal_Name)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment