First. and Last. in SAS DI with out user written code

Reply
Occasional Contributor
Posts: 18

First. and Last. in SAS DI with out user written code

i am trying to implement first. and last. logic SAS DI. But this should not be done using user written code option. This should be carried out using SAS DI tools/options. Please let me know if it possible or provide me  a link when i can go through.

Super User
Posts: 6,982

Re: First. and Last. in SAS DI with out user written code

What's the objection against user written code?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Respected Advisor
Posts: 3,908

Re: First. and Last. in SAS DI with out user written code

[ Edited ]

@SMohanReddy

It is DIS best practice to not use user written code if you can do it with other means. 

 

We don't know the logic you have to implement but if it really requires FIRST/LAST then there isn't a ready-made transformation available and you need to defer to user written code.

You can choose "user written body" and still have some of the code metadata driven by using the generated macro variables (i.e. the genarated macro variable holding the variables to be kept in your target data set).

Ask a Question
Discussion stats
  • 2 replies
  • 83 views
  • 0 likes
  • 3 in conversation