BookmarkSubscribeRSS Feed
kajal_30
Quartz | Level 8

I have I am working on a main frame program for the first time.When it says 

TABLE FILE CARS1

PRINT

CYLINDERS

COUNTRY

PRICE

MAKE

MODEL

WHERE PAL = 'DAV'

END 

FIN

 

as I don't have PAL variable in the actual dataset and where PAL = 'DAV' statement says put PAL = 'DAV' or it works as a regular where filter in base SAS or it main frame code work differently?

 

Thanks

KAJAL

2 REPLIES 2
Shmuel
Garnet | Level 18

The syntax for WHERE statement is equal on all SAS platforms - MF/Unix/Linux/Windows etc. 

You can check which variables are in dataset by running PROC CONTENTS.

I guess you got an exercise on sashelp.cars dataset.

Write a code and check - maybe PAL, if it doesn't exist it is a typo and replace it to

the right name.

Kurt_Bremser
Super User

What you posted is neither a SAS program nor a program in any other language on mainframes (JCL, COBOL, PL/1) I know of.

If you have trouble with a step in a SAS program, post the whole log of this step; use the </> button to post it.

Bildschirmfoto 2020-04-07 um 08.32.59.png

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 496 views
  • 0 likes
  • 3 in conversation