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 2006, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 22 Jun 2006 12:18:08 -0400
Reply-To:   "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject:   Re: why is this warning(error) ??????????

On Thu, 22 Jun 2006 15:09:54 +0000, toby dunn <tobydunn@HOTMAIL.COM> wrote:

>Howard , > >I dont think I was very clear in my post, as was evident by yours and Venkys >response. I can only find two broad category of statements Data Step and >Global.

That's just a consequence of the way the documentation is structured. You were looking at the Base SAS Language Reference, the scope of which excludes:

1. Products outside the Base Product

2. Base SAS procedures.

Okay, format and label statements arent specific to the data step >language they can also be used in some other languages.

Like WHERE, and others

>So while they are a >Data Step Statement they are also much more. So how would you classify >them?

The crux: Can they be used *between* steps? That's what makes a global.

>It seems SI classifies them as global since they reach across >languages, which seems pretty consistent to me with a global statement, >albeit even if they are hamstrung by not reaching across all languages in >the SAS sytem. > > > >Toby Dunn > > > > > >From: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM> >Reply-To: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM> >To: SAS-L@LISTSERV.UGA.EDU >Subject: Re: why is this warning(error) ?????????? >Date: Thu, 22 Jun 2006 10:47:38 -0400 > >See http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a001225401.htm >or http://tinyurl.com/h627h > >I do not see FORMAT or LABEL in the list. > >On Thu, 22 Jun 2006 10:14:47 -0400, Venky Chakravarthy <swovcc@HOTMAIL.COM> >wrote: > > >Toby, > > > >It is listed below the GLOBAL statements. That is different from saying > >that it is a GLOBAL statement. The true GLOBALES are brought up by >clicking > >that GLOBAL STATEMENTS link. > > > >It doesn't make any sense that LABEL and FORMAT can be characterized as > >GLOBAL. They cannot independently exist like LIBNAME, FILENAME etc. They > >are DECLARATIVE statements inside a data step or a proc. > > > >Venky > > > > > > > >On Thu, 22 Jun 2006 13:11:17 +0000, toby dunn <tobydunn@HOTMAIL.COM> >wrote: > > > >>Howard , > >> > >>Go to the online docs, do a search for global statement. click on the > >first > >>hit shold be "SAS(R) 9.1.3 Language Reference: Dictionary, Fifth Edition: > >>Statements" and you will see all of the global statements. In that list > >>both format and label are there. > >> > >> > >> > >>Toby Dunn > >> > >> > >> > >> > >> > >>From: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM> > >>Reply-To: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM> > >>To: SAS-L@LISTSERV.UGA.EDU > >>Subject: Re: why is this warning(error) ?????????? > >>Date: Wed, 21 Jun 2006 22:27:01 -0400 > >> > >>On Tue, 20 Jun 2006 23:46:02 -0400, SAS_learner <proccontents@GMAIL.COM> > >>wrote: > >> > >> >Guys I am using SAS 8.2 version on windows xp platform , I am trying to > >do > >> >something like this and I getting this warning in the Log can some body > >> >explain me why and how to solve it > >> > > >> > proc sql ; > >> >36 create table test > >> >37 (customer char(4) , > >> >38 item char(10) , > >> >39 units num, > >> >40 unitcost num(8,2)); > >> >NOTE: Table WORK.TEST created, with 0 rows and 4 columns. > >> >41 label customer = 'Customer number ' > >> >WARNING: This SAS global statement is not supported in PROC SQL. It has > >>been > >> >ignored. > >> > >>The what's and why's and workarounds have been covered. > >> > >>I'm just surprised at the characterization of LABEL and FORMAT as *global > >>statements*, because they aren't, under my understanding of the term. >They > >>have to be used within steps which support them. > >> > >> >42 item = 'Item purchased ' > >> >43 units = '# Units purchased ' > >> >44 unitcost = 'Unit cost' > >> >45 format unitcost dollar12.2; > >> >46 quit;


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