BookmarkSubscribeRSS Feed
SMohanReddy
Obsidian | Level 7

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.

2 REPLIES 2
Patrick
Opal | Level 21

@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).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 643 views
  • 1 like
  • 3 in conversation