BookmarkSubscribeRSS Feed
robertrao
Quartz | Level 8

hi,

the image is not very clear.

My question is :

I am creating a stamp parameter so every time I run the same code it records the date when I ran the dataset. so I can compare if there is a difference between the datasets in due time if any....

when I pass the parameter for stamp variable(01_14_15) I have the 01 in green????

does that mean  there any mistake in usage?? why m I getting it in green????

other than that the dataset runs fine...

Please help me understand

thanks

sas-code.JPG

5 REPLIES 5
Ksharp
Super User

I don't think that is a problem. sometime SAS recognize keyword , sometime it don't . E.X why the keyword attrib would be red ,even it is right statement .

x.png

Xia Keshan

naveen_srini
Quartz | Level 8

Hi,

When type a period(.) after a text anywhere in a sas program you would usually notice that going green because SAS assumes you are either using an Informat or a Format. Yes, your syntax is the issue i guess. You do not need a delimiter(.)period after macro variable reference &stamp.

Remove the dot in the data statement after &stamp, the green should disappear.

ballardw
Super User

It is an enhanced editor appearance option, most likely the Numeric Constant. setting in your current editor scheme.

robertrao
Quartz | Level 8

Hi ,

Thanks for all the responses and help.

I am assuming that that is not a mistake in the code or syntax!!!!

Thank you

Kurt_Bremser
Super User

SAS sees digits at the start of a new word and therefore implies this to be a numeric constant, which is displayed in green in the enhanced editor. Nothing to worry about.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 5 replies
  • 506 views
  • 0 likes
  • 5 in conversation