BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Can anyone tell me
what is flag, where it is used and how it is used
thanks
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
This question is probably not an ODS or Base Reporting procedure (PRINT, REPORT, TABULATE) question.

Generally, speaking, a column or field called "FLAG" is meant to signal some condition. Usually in a program. Imagine that I use the file SASHELP.CLASS and I want to answer some question (do any names start with 'A'). I might have this:
[pre]
data countA;
set sashelp.class;
if substr(name,1,1) = 'A' then flag = 'y';
run;

proc print data=countA;
where flag = 'y';
run;
[/pre]

Of course this is a silly example, because there are other ways to print a list of students whose names start with 'A'. But the point is that the use of FLAG as a variable or field is specific to the kind of program that FLAG appears in. There is an instance, where an SQL procedure view will create a column called "FLAGS" -- (and a few other places) as described here:
http://support.sas.com/kb/19/578.html
http://support.sas.com/kb/5/346.html
But you did not say this question was related to SQL or PROC CONTENTS.

Your best bet for help with this question is to contact SAS Technical Support. To send a question to Tech Support, go to http://support.sas.com/ and in the left-hand navigation pane, click on the link entitled "Submit a Problem".

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 660 views
  • 0 likes
  • 2 in conversation