Classification: Limited JCL that allocates datasets that are never opened won't update the last referred date. Delete the dataset, however, and you will end up with a JCL error.
Andy Styles z/Series Systems Programmer -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Jason Cai Sent: Wednesday, May 8, 2024 1:17 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Consultation on the Potential Risks of Deleting Specific Datasets *** This email is from an external source - be careful of attachments and links. Please report suspicious emails *** Dear all I am reaching out to discuss a specific operation we are considering for our z/OS DCOLLECT reports. Currently, we are planning to delete all the datasets where LASTREF=NONE and DSORG=PS. This operation seems crucial for system maintenance and optimization, yet I wanted to clarify any potential risks associated with this action. As far as I understand, LASTREF refers to the last accessed date of the file. Hence, LASTREF=NONE implies that the file has not been accessed since its creation. Could you confirm if my understanding is correct? Additionally, I have been attempting to search for more information about LASTREF=NONE in the IBM manual, but my efforts have yielded limited success. If possible, could you kindly guide me on how to navigate the manual to find specific information like this one or recommend any reliable resources where such details may be more readily available? Lastly, does IBM have any specific requirements regarding the closure of PS datasets? By this I mean if a PS has been opened and never closed, would the LASTREF also be none? Any advice or insights you have on this matter would be highly appreciated. Looking forward to your helpful response. Best regards, Jason Cai ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC95000. Telephone: 0131 225 4555. Lloyds Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 2065. Telephone 0207626 1500. Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC327000. Telephone: 03457 801 801. Lloyds Bank Corporate Markets plc. Registered office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 10399850. Scottish Widows Schroder Personal Wealth Limited. Registered Office: 25 Gresham Street, London EC2V 7HN. Registered in England and Wales no. 11722983. Lloyds Bank plc, Bank of Scotland plc and Lloyds Bank Corporate Markets plc are authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and Prudential Regulation Authority. Scottish Widows Schroder Personal Wealth Limited is authorised and regulated by the Financial Conduct Authority. Lloyds Bank Corporate Markets Wertpapierhandelsbank GmbH is a wholly-owned subsidiary of Lloyds Bank Corporate Markets plc. Lloyds Bank Corporate Markets Wertpapierhandelsbank GmbH has its registered office at Thurn-und-Taxis Platz 6, 60313 Frankfurt, Germany. The company is registered with the Amtsgericht Frankfurt am Main, HRB 111650. Lloyds Bank Corporate Markets Wertpapierhandelsbank GmbH is supervised by the Bundesanstalt für Finanzdienstleistungsaufsicht. Halifax is a division of Bank of Scotland plc. HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in Scotland no. SC218813. This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments. Telephone calls may be monitored or recorded. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN