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
 
I need to delete a sequential dataset based on the creation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: I need to delete a sequential dataset based on the creation
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

Moderator Team Head


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

PostPosted: Fri Dec 14, 2007 7:18 pm    Post subject: Reply to: I need to delete a sequential dataset based on the
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    Post subject:
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    Post subject: Reply to: I need to delete a sequential dataset based on the
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Dec 15, 2007 1:56 pm    Post subject:
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    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 How do you create Eclipse based dialogs jasorn IBM Tools 0 Thu Aug 03, 2017 5:05 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am


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