DATA Step, Macro, Functions and more

Base sas

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Base sas

Why do we use lowcase function twicw while using SAS

eg:lowcase(lowcase(trim("    gsbls")));


Accepted Solutions
Solution
‎07-27-2016 01:32 AM
New Contributor
Posts: 3

Re: Base sas

Yes ,double usage of lowcase will not affect the result.However it may be a typo error if manually written.

 

View solution in original post


All Replies
Super User
Posts: 17,750

Re: Base sas

I don't think the double usage would change anything here. A single usage will suffice. 

Occasional Contributor
Posts: 9

Re: Base sas

i saw an example,it was specifically written for only one string and all other strings in it were given only one...

eg:-

lowcase(lowcase(a));

lowcase(b);

lowcase(c);

Super User
Posts: 17,750

Re: Base sas

I'm not sure I understand your question. The double usage doesn't affect anything but doesn't accomplish anything. 

 

Is this code generated from SAS or user written?

Occasional Contributor
Posts: 9

Re: Base sas

its a user written code

even i feel that it should not affect the outcome of the program 

but in other cases lowcase is mentioned only once...as i have shown above.only this one pirticular case its given twice

 

Super User
Posts: 17,750

Re: Base sas

Again what's your question?

 

If it's user written code feel free to change it and use only one. 

New Contributor
Posts: 2

Re: Base sas

[ Edited ]

You can get complete detail on Base SAS Certification questions

Solution
‎07-27-2016 01:32 AM
New Contributor
Posts: 3

Re: Base sas

Yes ,double usage of lowcase will not affect the result.However it may be a typo error if manually written.

 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 7 replies
  • 334 views
  • 0 likes
  • 4 in conversation