BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

can we use logical variables(first. , last.) in proc report?

3 REPLIES 3
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

Would you please use a subject title that states what you are working with.  Subject like "Can we do" what?  Jump rope, fly like a bird or search for something at SAS support.

 

https://documentation.sas.com/?docsetId=proc&docsetTarget=p0bqogcics9o4xn17yvt2qjbgdpi.htm&docsetVer...

 

if you search SAS you can answer many of your own questions. 

 

https://communities.sas.com/t5/SAS-Programming/how-to-delete-file/m-p/496015

AS Kurt and others have said do a little searching yourself.  Then ask questions around the parts you are having issues with, or that are unclear in the documentation. 

 

Let your fingers do the walking. 

If you try to answer yourself you will learn a lot more, and when you get a job using SAS you will have some knowledge not just code snips that others have provided for you that you have placed into your code library..

 

 

 

 

Ksharp
Super User

You could use

COMPUTE BEFORE group_variable;

 

COMPUTE AFTER group_variable;

 

instead of FIRST, LAST .

Patrick
Opal | Level 21

@thanikondharish

That deserves a "Yes we can".

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1061 views
  • 4 likes
  • 4 in conversation