BookmarkSubscribeRSS Feed
dan999
Fluorite | Level 6

I'm trying to loop through a dataset and return rows based on a proc sql. The DLinMacro file contains the code that I found on this site and I'm trying to modify it.

The code in the LoopingMacro file is my modification. The code works for some of the rows but not for others. For the rows that it doesn't bring back any results for, the nikey value shows up in the log file (attached) as an exponential -

In the SqlUsingIn file I've included code where I used a subquery to show that I can get values back for all of the rows that way. I'm sorry for so many attachments but I was having trouble pasting into the message.

Any help you can offer will be appreciated.

Thanks

3.8462557E12. The rows where the nikey value does not show up as an exponential, I get results for. 

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
  • 0 replies
  • 597 views
  • 0 likes
  • 1 in conversation