LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2000, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 2 Jun 2000 10:09:19 GMT
Reply-To:     Markov@aņejo.com
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Markov Ian Emmas <Markov@AŅEJO.COM>
Organization: Private
Subject:      Re: How to capture table name
Content-Type: text/plain; charset=us-ascii

On 2 Jun 00 03:30:02 GMT, subramaniam.baskaran@DB.COM (Baskaran Subramaniam) eructed:

>=>Hello List users... >=> >=>We are a OS/390 site. We have a SAS dataset which has got a table in it. >=>We have to read the observations in it and populate an external file. >=> >=>Is there any way, I can trap the table name and use it in the program for populating a message.

I am assuming that your SAS source code contains the name of the table, and that you are not using PROC CONTENTS or PROC DATASETS to generate a list of tables from which you programmatically select the table for processing.

The simplest way then would be to set a macro variable value to the table name, something like this (obviously untested):

%let table=MYLIB.INTABLE; filename extern 'data.set.name'; /* if no //EXTERN DD */ data what.ever; set &table; file log; put "NOTE: Now processing &table"; file extern; /* process */ run;


Back to: Top of message | Previous page | Main SAS-L page