Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Specifying Expiry Date for DASD datasets thru JCL!!!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
bijumon

New User


Joined: 14 Aug 2006
Posts: 20
Location: Pune,India

PostPosted: Tue Aug 21, 2007 12:21 pm    Post subject: Specifying Expiry Date for DASD datasets thru JCL!!!
Reply with quote

Hi,

Is it possible to specify expiry date for a DASD dataset thru JCL, I tried using the LABEL parameter, but it is not taking the Expiry date that, I have specified.
Back to top
View user's profile Send private message

kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Tue Aug 21, 2007 2:33 pm    Post subject:
Reply with quote

Hi,

Is it possible to specify expiry date for a DASD dataset thru JCL,

its possible ,First contact your operator and admins they will guide you to do this....
they are having all sample jcls. check it out..

tried using the LABEL parameter, but it is not taking the Expiry date that, I have specified.

Its showing any Error message?,Security Violation error, be specific in this . its possible post the JCL what you coded.


Cheers,
kumaresh.m
Back to top
View user's profile Send private message
bijumon

New User


Joined: 14 Aug 2006
Posts: 20
Location: Pune,India

PostPosted: Tue Aug 21, 2007 3:24 pm    Post subject: Reply to: Specifying Expiry Date for DASD datasets thru JCL!
Reply with quote

Hi kumaresh,

I have mentioned it that it is not picking the expiry date i have given, The job is not abending or saying that there is any violation while defining the dataset.

The JCL is a simple IEBCOPY, i want the backup to be deleted after some days automatically. The STEP is as shown below.

//STEP010 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT3 DD UNIT=SYSDA,SPACE=(TRK,(5))
//SYSUT4 DD UNIT=SYSDA,SPACE=(TRK,(5))
//INFIL1 DD DSN=&INPDS1,
// DISP=SHR
//OUTFIL1 DD DSN=&OUTPDS1,
// DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800),
// SPACE=(CYL,(5,10,15)),
// UNIT=SYSDA,
// LABEL=(1,SL,RETPD=15)


Thanks & Regards,
----------------------
Biju
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 21, 2007 4:08 pm    Post subject:
Reply with quote

It is entirely possible that your SMS environment has been set up to ignore user specified retention and expiry dates. That's the way I set up my environments to maintain the storage policies.

If your environment is not set up as above, the fact that you have said that a dataset may be expired at a certain date, dependingon the SMS setup, it may or may not honour your desires and actually delete your file when you want it to.

I don't know which version of the JCL manuals you have, but RETPD is a parameter in its own right, so you only need to code RETPD=5
Back to top
View user's profile Send private message
kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Tue Aug 21, 2007 4:30 pm    Post subject:
Reply with quote

Hi,

I dont thing so any problem with LABEL Parameter in JCL coding.
but i think the problem is with your enviromment mainly in DFSMS

is entirely possible that your SMS environment has been set up to ignore user specified retention and expiry dates.

Then SMS thrown a error wright,if we codied in user JCL?.He is saying that he didnt get any errors and warnings.

Just try to get a help from your storage admin
Back to top
View user's profile Send private message
bijumon

New User


Joined: 14 Aug 2006
Posts: 20
Location: Pune,India

PostPosted: Wed Aug 22, 2007 10:21 am    Post subject: Reply to: Specifying Expiry Date for DASD datasets thru JCL!
Reply with quote

Hi,

I am using a Vendor provided mainframe system, so I am unable to contact any admin guy. We just get our accesses when needed thats it. If there is any other way to specify the expiry date, thru REXX or anything will be helpful, or atleaset know that the RACF or SMS is ignoring my expiry date.


Thanks & Regards,
----------------------
Biju
Back to top
View user's profile Send private message
kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Wed Aug 22, 2007 1:28 pm    Post subject:
Reply with quote

I think RACF is not sllowing you to do this,,,,Please read this,I dont think so how much its helpful to you.But you can provide the expiry date in RACF Panels.

One main thing you have to be Authorized to do this,Better you can get help from REXX Peoples in the form.I didnt know REXX.

IF any Security Related problem in RACF I guide you.


Cheers,
Kumaresh.M

DATA SET PROFILES

RACF keeps information about Groups and Users in profiles.

The key information that RACF stores in the data set profile is

• Data set profile name.
• Profile owner, which can be either a RACF defined user or group.
• Security classification.
• Access list
• Userid to notify if an access violation occurs.

• A user data set is one where the high-level qualifier must match the user’s id.

• The user can protect their own data sets by defining a data set profile with the userid as the HLQ of the profile.

• A group data set is one where the high level qualifier matches the name of a RACF defined group.

• To define a GROUP data set profiles to RACF.

• You must have the SPECIAL attribute or group-SPECIAL attribute or at least CREATE authority in the group, or OPERATIONS or group-OPERATIONS attribute.

DATA SET AUTHORIZATION CHECKING.


• Whenever an attempt is made to access a data set, RACF gets called and checks the access authority to determine whether to allow to the requested resource or not.

• The first check done by RACF is to see if the user is marked as either trusted or privileged in the RACF started procedures table. In either case, the user is allowed access.

• RACF does not look at a data set profile to make this decision.

• A user is always allowed to access those data sets that have a high-level-qualifier equal to user’s userid.

• Finally, a user who has the OPERATIONS attribute will be allowed access at any level.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us