extend the expiration date of a dataset.

All sort of Mainframes Interview Questions.
Previous topicNext topic

Topic Author
Dicta Mitra
New Member
Posts: 4
Joined: Sat Jan 16, 2016 12:46 pm

extend the expiration date of a dataset.

Post by Dicta Mitra » Sat Aug 13, 2016 10:19 pm

Hi,

One of the question which I have never experienced in real life wasasked in this interview. Question goes like this, is it possible to extend the expiration date of a dataset? If we can do so, what is the command for it or do we need to write some JCL for it?

I have searched about it on google but I could really find out how to get it. It is also said that it should be done, why?



User avatar

Akatsukami
Global Moderator
Global Moderator
Posts: 117
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL

Re: extend the expiration date of a dataset.

Post by Akatsukami » Sun Aug 14, 2016 5:23 am

You can do this using the ALTER command of IDCAMS. Whether you do it online or batch, and whether there is standard JCL, is of course dependent on your installation's standards.

Note that this may, in real life, be a futile, even dangerous, effort. Usually data sets on DASD do not have an explicit expiration date, and an attempt to give such a data set one will likely be overridden by SMS, if it is active. Moreover, what appear to be attempts to circumvent SMS may result in negative attention from corporate security, and be punished by actions up to and including termination.


"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli

User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1328
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: extend the expiration date of a dataset.

Post by Robert Sample » Sun Aug 14, 2016 5:34 am

Using DISP=MOD and a new expiration date can extend the date. SMS allows a default expiration date (retention period) in the management class, which may invalidate this. Finally, tape management systems usually control tape expiration, so unless the expiration date is changed in both the tape management system AND the operating system, they will be out of sync and hence could cause unpredictable results.

It's an odd interview question that doesn't really address the complexities that can ensue.




Topic Author
Dicta Mitra
New Member
Posts: 4
Joined: Sat Jan 16, 2016 12:46 pm

Re: extend the expiration date of a dataset.

Post by Dicta Mitra » Fri Aug 19, 2016 2:36 pm

Thanks both.
Akatsukami wrote: Note that this may, in real life, be a futile, even dangerous, effort. Usually data sets on DASD do not have an explicit expiration date, and an attempt to give such a data set one will likely be overridden by SMS, if it is active. Moreover, what appear to be attempts to circumvent SMS may result in negative attention from corporate security, and be punished by actions up to and including termination.
Why would it lead to a termination? You mean job termination, right? Why would this happen just changing the expiry date of the dataset?



User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1328
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: extend the expiration date of a dataset.

Post by Robert Sample » Fri Aug 19, 2016 6:44 pm

Why would it lead to a termination? You mean job termination, right? Why would this happen just changing the expiry date of the dataset?
"Termination" in this context is referring to employee termination for cause. Company managers do NOT like people attempting to avoid their established policies and procedures (especially security policies that control data set expiration), and attempting to change the expiry date of a data set without the advice and consent of the site support group could be seen as just such an action. It may not lead to employee termination, but that is one possible outcome of the course of action you are talking about.




Topic Author
Dicta Mitra
New Member
Posts: 4
Joined: Sat Jan 16, 2016 12:46 pm

Re: extend the expiration date of a dataset.

Post by Dicta Mitra » Mon Aug 29, 2016 1:39 pm

Robert Sample wrote:
Why would it lead to a termination? You mean job termination, right? Why would this happen just changing the expiry date of the dataset?
"Termination" in this context is referring to employee termination for cause. Company managers do NOT like people attempting to avoid their established policies and procedures (especially security policies that control data set expiration), and attempting to change the expiry date of a data set without the advice and consent of the site support group could be seen as just such an action. It may not lead to employee termination, but that is one possible outcome of the course of action you are talking about.
I was not aware about the severity of this. But if do it under proper supervision, will that still cause a problem? I think, no?




nicc
Global Moderator
Global Moderator
Posts: 578
Joined: Wed Apr 23, 2014 8:45 pm

Re: extend the expiration date of a dataset.

Post by nicc » Mon Aug 29, 2016 4:36 pm

That is already answered in Robert's post.


Regards
Nic


Topic Author
Dicta Mitra
New Member
Posts: 4
Joined: Sat Jan 16, 2016 12:46 pm

Re: extend the expiration date of a dataset.

Post by Dicta Mitra » Tue Aug 30, 2016 12:26 pm

Thanks ..I missed to read it carefully.



Previous topicNext topic

Return to “Interview Questions.”