IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

I need to delete a sequential dataset based on the creation


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PANDURS

New User


Joined: 23 Jan 2006
Posts: 3

PostPosted: Fri Dec 14, 2007 6:42 pm
Reply with quote

I need to delete a sequential dataset based on the creation date.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Dec 14, 2007 7:18 pm
Reply with quote

OK, a rather trivial task using any number of different methods. What specifically is your question? Is there some code you're having a problem with?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Fri Dec 14, 2007 7:46 pm
Reply with quote

Do a 3.4 to the set of datasets you want to delete from. Then do a listcat (in my shop we can type LA on the line before a dataset to do this) on each dataset. Read the results of the listcat for the creation date. When you see the date you want to delete, type del on the line before the dataset name.

Problem solved.
Back to top
View user's profile Send private message
PANDURS

New User


Joined: 23 Jan 2006
Posts: 3

PostPosted: Fri Dec 14, 2007 7:52 pm
Reply with quote

Yes, i need to move some data to one region to another region. we will get a data using the Panel and then using Skelton we create one job, which create input file for another job.

The panel is restricted to give input for 10 keys only.we have to do the second time if we have more than 10 key to move for creating a job,

during this first job data get last. we solved this problem using (MOD,CATLG,DELETE).

but now the problem is the data file need to be deleted for the next day. but we are not able to do.
Back to top
View user's profile Send private message
PANDURS

New User


Joined: 23 Jan 2006
Posts: 3

PostPosted: Fri Dec 14, 2007 8:02 pm
Reply with quote

Region A Region B

115 key 100 key

we need to move that 15 key to region B.
We use the panel to get these keys, but panel is restricted to get input for 10 keys. After getting input skelton will create a job for the movement of Key to Region B in a file say ABCD.XXX.XYZ. and we will run another job for movement.

as we have to move 5 more key to region B, again we use the same panel to get the another 5 key data and then skelton will create job for the movement of key to region b in a new file ABCD.XXX.XYZ, we used DCB parameter as (MOD,CATLG,DELETE) to retain the file.

This is the task of today.

When tomorrow we will move another 15 key we will be using the same procedure as stated above. but we will use the file ABCD.XXX.XYZ
(this will get created based on the user id), but it should be a fresh file, we don't want old data(Previous day data).


Note : We can not delete anything manually because ABCD is the user id
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Dec 15, 2007 1:56 pm
Reply with quote

Personally I would take a look at using DFdss. It is not the greatest tool on earth, but does have great flexibility in data selection.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top