Is there a way in REXX to pick the latest dataset in a group? Instead of GDG, some of our datasets have identical first 5 nodes then a date and time node to make unique. Looking for a way to automatically pick the latest dataset (equivalent to GDG zero).
Asked
Active
Viewed 237 times
1 Answers
1
2 options
- use outtrap with ListCat level
- use the ispf commands LMDINIT / LMDLIST etc. You need to be running under ISPF. You can run ISPF in a background job if you need to
The ISPF LMDINIT / LMDLIST is probably the easier / nicer of the 2 but you do need to be running under ispf.
The Listcat command:
ListCat level(prod.files)
For LMDINIT / LMDLIST
Address ispexec
'lmdinit LISTID(listId) level(prod.files)'
'lmdlist LISTID('listId') ...'

cschneid
- 10,237
- 1
- 28
- 39

Bruce Martin
- 10,358
- 1
- 27
- 38