Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deleting temporary SAS data sets on tape

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Thu Aug 04, 2011 8:39 pm    Post subject: Deleting temporary SAS data sets on tape
Reply with quote

I have 20 SAS data sets on tape and I need to sort each one. These data sets are for enrollees in certain programs and each enrollee can have multiple events with the date of the event being recorded on the record. I have the processing set up in a SAS macro and the steps can be delineated as shown below. The "sledgehammer" approach is to allocate 20 temporary data sets on tape but I am looking for a more efficient approach with considerably fewer resources.

1. Sort the data set which I will call &macvar.mydata and output the sorted temporary data which I will call tempdata.mydata to tape

2. Set tempdata.mydata in a data set which I will call &macvar.agg by enrollee ID and event date and construct enrollee-level counts on the basis of the certain event variables.

3. Append the data set &macvar.agg to a base data set using Proc Datasets.

4. Now at this point what I would like to do is use Proc Datasets to delete tempdata.mydata but since this data set is on tape SAS will not let me do this.

Has anybody been confronted with this problem?

Charles Wolters
Back to top
View user's profile Send private message

Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 967
Location: Richmond, Virginia

PostPosted: Thu Aug 04, 2011 10:34 pm    Post subject:
Reply with quote

Why tapes for temps?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8189
Location: East Dubuque, Illinois, USA

PostPosted: Thu Aug 04, 2011 10:51 pm    Post subject:
Reply with quote

Many sites place restrictions on tapes, such as not allowing the tape to be overwritten (which would be required for SAS to delete a temporary work data set on tape). Contact your site support group to make sure or to clarify what you need to do to allow this.
Back to top
View user's profile Send private message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Thu Aug 04, 2011 11:18 pm    Post subject: Re:Deleting temporary SAS data sets on tape
Reply with quote

Robert,

That is a good point. When creating permanent SAS data sets on tape, our tape management system lets one assign a special code to the expiration date which tells the system to keep the data set indefinitely or until the user decides to uncatalog it. When uncataloged my understanding is that you are giving the tape management system the green light to overwrite your data set(s).

It is possible that the tape management system won't let you delete the temporary data sets on tape during the job so I will find this out.

Charles
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 5 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us