Re: [EXTERNAL] Re: Command to list aged, migrated items
I used this, but it lists only the user's HLQ files. Even though the manual says ALL datasets... - Vignesh Mainframe Infrastructure -Original Message- From: IBM Mainframe Discussion List On Behalf Of Richards, Robert B. Sent: 16 October 2018 13:30 To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: Command to list aged, migrated items Thanks Chuck...I forgot about the LIST command. My bad. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Chuck Kreiter Sent: Tuesday, October 16, 2018 8:10 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Command to list aged, migrated items HSEND LIST DSNAME ODS('your.dataset.name') select(age(60)). This will give you anything migrated 60 days or more ago. You can then use the program of your choice to pare down the list. -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sankaranarayanan, Vignesh Sent: Tuesday, October 16, 2018 4:02 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Command to list aged, migrated items Hello everyone, I'm looking for a command to list all ML1/ML2 datasets that have an age of 60 (2 months ago, they were migrated). A working command would be ideal, as I'm looking to stick it into a batch job.. Thank you! - Vignesh Mainframe Infrastructure MARKSANDSPENCER.COM Unless otherwise stated above: Marks and Spencer plc Registered Office: Waterside House 35 North Wharf Road London W2 1NW Registered No. 214436 in England and Wales. Telephone (020) 7935 4422 Facsimile (020) 7487 2670 www.marksandspencer.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: Command to list aged, migrated items
> >I'm looking for a command to list all ML1/ML2 datasets that have an age of >60 (2 months ago, they were migrated). >A working command would be ideal, as I'm looking to stick it into a batch job.. Have you looked at using DCOLLECT? -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: Command to list aged, migrated items
You will need to show us the command you used and some of the output. You can mask the HLQs but we need to see what the output looks like Be aware that the manual has many parameters and you may need to play with the LIST to get what you want. You may also need to do more than one command if you need both ML1 and ML2 reports Lizette > -Original Message- > From: IBM Mainframe Discussion List On Behalf Of > Sankaranarayanan, Vignesh > Sent: Tuesday, October 16, 2018 5:44 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > I used this, but it lists only the user's HLQ files. > Even though the manual says ALL datasets... > > - Vignesh > Mainframe Infrastructure > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of Sankaranarayanan, Vignesh > Sent: Tuesday, October 16, 2018 4:02 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Command to list aged, migrated items > > Hello everyone, > > I'm looking for a command to list all ML1/ML2 datasets that have an age of > 60 (2 months ago, they were migrated). > A working command would be ideal, as I'm looking to stick it into a batch > job.. > > Thank you! > > - Vignesh > Mainframe Infrastructure > > > MARKSANDSPENCER.COM > sage: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: Command to list aged, migrated items
Hi Lizette, I used this, same one as Chuck replied with - HSEND LIST DSNAME ODS('your.dataset.name') select(age(60)) I don't think the output matters since I can say with ease that it shows just the files under my HLQ (from TSO PROFILE PREFIX, I think). DCOLLECT works but I was hoping a simple command has the answer.. - Vignesh Mainframe Infrastructure -Original Message- From: IBM Mainframe Discussion List On Behalf Of Lizette Koehler Sent: 16 October 2018 14:15 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items You will need to show us the command you used and some of the output. You can mask the HLQs but we need to see what the output looks like Be aware that the manual has many parameters and you may need to play with the LIST to get what you want. You may also need to do more than one command if you need both ML1 and ML2 reports Lizette > -Original Message- > From: IBM Mainframe Discussion List On > Behalf Of Sankaranarayanan, Vignesh > Sent: Tuesday, October 16, 2018 5:44 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > I used this, but it lists only the user's HLQ files. > Even though the manual says ALL datasets... > > - Vignesh > Mainframe Infrastructure > -Original Message- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > On Behalf Of Sankaranarayanan, Vignesh > Sent: Tuesday, October 16, 2018 4:02 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Command to list aged, migrated items > > Hello everyone, > > I'm looking for a command to list all ML1/ML2 datasets that have an > age of > 60 (2 months ago, they were migrated). > A working command would be ideal, as I'm looking to stick it into a > batch job.. > > Thank you! > > - Vignesh > Mainframe Infrastructure > > > MARKSANDSPENCER.COM > sage: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN MARKSANDSPENCER.COM Unless otherwise stated above: Marks and Spencer plc Registered Office: Waterside House 35 North Wharf Road London W2 1NW Registered No. 214436 in England and Wales. Telephone (020) 7935 4422 Facsimile (020) 7487 2670 www.marksandspencer.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: Command to list aged, migrated items
Try this On the console enter the LIST portion of the command F dfhsm_task_name,LIST DSNAME ODS('your.dataset.name') select(age(60)) Sometimes in TSO it can restrict your process Lizette > -Original Message- > From: IBM Mainframe Discussion List On Behalf Of > Sankaranarayanan, Vignesh > Sent: Tuesday, October 16, 2018 6:47 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > Hi Lizette, > > I used this, same one as Chuck replied with - > > HSEND LIST DSNAME ODS('your.dataset.name') select(age(60)) > > I don't think the output matters since I can say with ease that it shows just > the files under my HLQ (from TSO PROFILE PREFIX, I think). > > DCOLLECT works but I was hoping a simple command has the answer.. > > > - Vignesh > Mainframe Infrastructure > > -Original Message- > From: IBM Mainframe Discussion List On Behalf Of > Lizette Koehler > Sent: 16 October 2018 14:15 > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > You will need to show us the command you used and some of the output. You > can mask the HLQs but we need to see what the output looks like > > Be aware that the manual has many parameters and you may need to play with > the LIST to get what you want. > > You may also need to do more than one command if you need both ML1 and ML2 > reports > > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List On > > Behalf Of Sankaranarayanan, Vignesh > > Sent: Tuesday, October 16, 2018 5:44 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > I used this, but it lists only the user's HLQ files. > > Even though the manual says ALL datasets... > > > > - Vignesh > > Mainframe Infrastructure > > -Original Message- > > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] > > On Behalf Of Sankaranarayanan, Vignesh > > Sent: Tuesday, October 16, 2018 4:02 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Command to list aged, migrated items > > > > Hello everyone, > > > > I'm looking for a command to list all ML1/ML2 datasets that have an > > age of > > 60 (2 months ago, they were migrated). > > A working command would be ideal, as I'm looking to stick it into a > > batch job.. > > > > Thank you! > > > > - Vignesh > > Mainframe Infrastructure > > > > > > MARKSANDSPENCER.COM > > > sage: INFO IBM-MAIN > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > MARKSANDSPENCER.COM > > Unless otherwise stated above: > Marks and Spencer plc > Registered Office: > Waterside House > 35 North Wharf Road > London > W2 1NW > > Registered No. 214436 in England and Wales. > > Telephone (020) 7935 4422 > Facsimile (020) 7487 2670 > > www.marksandspencer.com > > Please note that electronic mail may be monitored. > > This e-mail is confidential. If you received it by mistake, please let us > know and then delete it from your system; you should not copy, disclose, or > distribute its contents to anyone nor act in reliance on this e-mail, as this > is prohibited and may be unlawful. > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: Command to list aged, migrated items
And before you ask, you can do this in batch jcl with the COMMAND JCL Statement. The USER= parm in JCL will need to have the ability to submit MVS commands and DFHSM commands Lizette > -Original Message- > From: IBM Mainframe Discussion List On Behalf Of > Lizette Koehler > Sent: Tuesday, October 16, 2018 6:48 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > Try this > > On the console enter the LIST portion of the command > > F dfhsm_task_name,LIST DSNAME ODS('your.dataset.name') select(age(60)) > > > Sometimes in TSO it can restrict your process > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List On > > Behalf Of Sankaranarayanan, Vignesh > > Sent: Tuesday, October 16, 2018 6:47 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > Hi Lizette, > > > > I used this, same one as Chuck replied with - > > > > HSEND LIST DSNAME ODS('your.dataset.name') select(age(60)) > > > > I don't think the output matters since I can say with ease that it > > shows just the files under my HLQ (from TSO PROFILE PREFIX, I think). > > > > DCOLLECT works but I was hoping a simple command has the answer.. > > > > > > - Vignesh > > Mainframe Infrastructure > > > > -Original Message- > > From: IBM Mainframe Discussion List On > > Behalf Of Lizette Koehler > > Sent: 16 October 2018 14:15 > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > You will need to show us the command you used and some of the output. > > You can mask the HLQs but we need to see what the output looks like > > > > Be aware that the manual has many parameters and you may need to play > > with the LIST to get what you want. > > > > You may also need to do more than one command if you need both ML1 and > > ML2 reports > > > > > > Lizette > > > > > > > -Original Message- > > > From: IBM Mainframe Discussion List On > > > Behalf Of Sankaranarayanan, Vignesh > > > Sent: Tuesday, October 16, 2018 5:44 AM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > I used this, but it lists only the user's HLQ files. > > > Even though the manual says ALL datasets... > > > > > > - Vignesh > > > Mainframe Infrastructure > > > -Original Message- > > > From: IBM Mainframe Discussion List > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sankaranarayanan, > > > Vignesh > > > Sent: Tuesday, October 16, 2018 4:02 AM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Command to list aged, migrated items > > > > > > Hello everyone, > > > > > > I'm looking for a command to list all ML1/ML2 datasets that have an > > > age of > > > 60 (2 months ago, they were migrated). > > > A working command would be ideal, as I'm looking to stick it into a > > > batch job.. > > > > > > Thank you! > > > > > > - Vignesh > > > Mainframe Infrastructure > > > > > > > > > MARKSANDSPENCER.COM > > > > > sage: INFO IBM-MAIN > > > > -- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > > > MARKSANDSPENCER.COM > > > > Unless otherwise stated above: > > Marks and Spencer plc > > Registered Office: > > Waterside House > > 35 North Wharf Road > > London > > W2 1NW > > > > Registered No. 214436 in England and Wales. > > > > Telephone (020) 7935 4422 > > Facsimile (020) 7487 2670 > > > > www.marksandspencer.com > > > > Please note that electronic mail may be monitored. > > > > This e-mail is confidential. If you received it by mistake, please let > > us know and then delete it from your system; you should not copy, > > disclose, or distribute its contents to anyone nor act in reliance on > > this e-mail, as this is prohibited and may be unlawful. > > > > -- > > For IBM-MAIN subscribe / signoff / archive access instructions, send > > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > -- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > lists...@listserv.ua.edu with the message: INFO IBM-MAIN -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
Re: [EXTERNAL] Re: Command to list aged, migrated items
And the other option. When doing work in TSO (option 6 etc... in ISPF) you probably need to remove your TSO Prefix. PROF NOPREFIX Issue HSEND command Then turn prefix back on when you are done. Lizette > -Original Message- > From: Lizette Koehler > Sent: Tuesday, October 16, 2018 6:51 AM > To: 'IBM Mainframe Discussion List' > Subject: RE: [EXTERNAL] Re: Command to list aged, migrated items > > And before you ask, you can do this in batch jcl with the COMMAND JCL > Statement. The USER= parm in JCL will need to have the ability to submit > MVS commands and DFHSM commands > > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List On > > Behalf Of Lizette Koehler > > Sent: Tuesday, October 16, 2018 6:48 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > Try this > > > > On the console enter the LIST portion of the command > > > > F dfhsm_task_name,LIST DSNAME ODS('your.dataset.name') select(age(60)) > > > > > > Sometimes in TSO it can restrict your process > > > > Lizette > > > > > > > -Original Message- > > > From: IBM Mainframe Discussion List On > > > Behalf Of Sankaranarayanan, Vignesh > > > Sent: Tuesday, October 16, 2018 6:47 AM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > Hi Lizette, > > > > > > I used this, same one as Chuck replied with - > > > > > > HSEND LIST DSNAME ODS('your.dataset.name') select(age(60)) > > > > > > I don't think the output matters since I can say with ease that it > > > shows just the files under my HLQ (from TSO PROFILE PREFIX, I think). > > > > > > DCOLLECT works but I was hoping a simple command has the answer.. > > > > > > > > > - Vignesh > > > Mainframe Infrastructure > > > > > > -Original Message- > > > From: IBM Mainframe Discussion List On > > > Behalf Of Lizette Koehler > > > Sent: 16 October 2018 14:15 > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > You will need to show us the command you used and some of the output. > > > You can mask the HLQs but we need to see what the output looks like > > > > > > Be aware that the manual has many parameters and you may need to > > > play with the LIST to get what you want. > > > > > > You may also need to do more than one command if you need both ML1 > > > and > > > ML2 reports > > > > > > > > > Lizette > > > > > > > > > > -Original Message- > > > > From: IBM Mainframe Discussion List On > > > > Behalf Of Sankaranarayanan, Vignesh > > > > Sent: Tuesday, October 16, 2018 5:44 AM > > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > > > I used this, but it lists only the user's HLQ files. > > > > Even though the manual says ALL datasets... > > > > > > > > - Vignesh > > > > Mainframe Infrastructure > > > > -Original Message- > > > > From: IBM Mainframe Discussion List > > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sankaranarayanan, > > > > Vignesh > > > > Sent: Tuesday, October 16, 2018 4:02 AM > > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > > Subject: Command to list aged, migrated items > > > > > > > > Hello everyone, > > > > > > > > I'm looking for a command to list all ML1/ML2 datasets that have > > > > an age of > > > > 60 (2 months ago, they were migrated). > > > > A working command would be ideal, as I'm looking to stick it into > > > > a batch job.. > > > > > > > > Thank you! > > > > > > > > - Vignesh > > > > Mainframe Infrastructure > > > > > > > > > > > > MARKSANDSPENCER.COM > > > > > > > sage: INFO IBM-MAIN > > > > > > > > > -- For IBM-MAIN subscribe / signoff / archive access instructions, > > &g
Re: [EXTERNAL] Re: Command to list aged, migrated items
Thanks Lizette, that modify command is just what I'm after. PROF NOPREFIX-ing it just fails the command with RC8 when I tried. - Vignesh Mainframe Infrastructure -Original Message- From: IBM Mainframe Discussion List On Behalf Of Lizette Koehler Sent: 16 October 2018 14:57 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items And the other option. When doing work in TSO (option 6 etc... in ISPF) you probably need to remove your TSO Prefix. PROF NOPREFIX Issue HSEND command Then turn prefix back on when you are done. Lizette > -Original Message- > From: Lizette Koehler > Sent: Tuesday, October 16, 2018 6:51 AM > To: 'IBM Mainframe Discussion List' > Subject: RE: [EXTERNAL] Re: Command to list aged, migrated items > > And before you ask, you can do this in batch jcl with the COMMAND JCL > Statement. The USER= parm in JCL will need to have the ability to > submit MVS commands and DFHSM commands > > > Lizette > > > > -Original Message- > > From: IBM Mainframe Discussion List On > > Behalf Of Lizette Koehler > > Sent: Tuesday, October 16, 2018 6:48 AM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > Try this > > > > On the console enter the LIST portion of the command > > > > F dfhsm_task_name,LIST DSNAME ODS('your.dataset.name') > > select(age(60)) > > > > > > Sometimes in TSO it can restrict your process > > > > Lizette > > > > > > > -Original Message- > > > From: IBM Mainframe Discussion List On > > > Behalf Of Sankaranarayanan, Vignesh > > > Sent: Tuesday, October 16, 2018 6:47 AM > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > Hi Lizette, > > > > > > I used this, same one as Chuck replied with - > > > > > > HSEND LIST DSNAME ODS('your.dataset.name') select(age(60)) > > > > > > I don't think the output matters since I can say with ease that it > > > shows just the files under my HLQ (from TSO PROFILE PREFIX, I think). > > > > > > DCOLLECT works but I was hoping a simple command has the answer.. > > > > > > > > > - Vignesh > > > Mainframe Infrastructure > > > > > > -Original Message- > > > From: IBM Mainframe Discussion List On > > > Behalf Of Lizette Koehler > > > Sent: 16 October 2018 14:15 > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > You will need to show us the command you used and some of the output. > > > You can mask the HLQs but we need to see what the output looks > > > like > > > > > > Be aware that the manual has many parameters and you may need to > > > play with the LIST to get what you want. > > > > > > You may also need to do more than one command if you need both ML1 > > > and > > > ML2 reports > > > > > > > > > Lizette > > > > > > > > > > -Original Message- > > > > From: IBM Mainframe Discussion List > > > > On Behalf Of Sankaranarayanan, Vignesh > > > > Sent: Tuesday, October 16, 2018 5:44 AM > > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > > Subject: Re: [EXTERNAL] Re: Command to list aged, migrated items > > > > > > > > I used this, but it lists only the user's HLQ files. > > > > Even though the manual says ALL datasets... > > > > > > > > - Vignesh > > > > Mainframe Infrastructure > > > > -Original Message- > > > > From: IBM Mainframe Discussion List > > > > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Sankaranarayanan, > > > > Vignesh > > > > Sent: Tuesday, October 16, 2018 4:02 AM > > > > To: IBM-MAIN@LISTSERV.UA.EDU > > > > Subject: Command to list aged, migrated items > > > > > > > > Hello everyone, > > > > > > > > I'm looking for a command to list all ML1/ML2 datasets that have > > > > an age of > > > > 60 (2 months ago, they were migrated). > > > > A working command would be ideal, as I'm looking to stick it > > > > into a batch job.. > > > > > > > > Thank you! > > > > > > > > - Vi