BookmarkSubscribeRSS Feed
5 REPLIES 5
andreas_lds
Jade | Level 19

Difficult to help without seeing the log.

Citrine10
Obsidian | Level 7
I am not finding the piece of code in the log either so it doesnt seem like its even getting there 😞
Kurt_Bremser
Super User

We will need to see how you insert the code in your macro, so we can detect how the macro code influences the FDELETE operation.

 

Tips for debugging macros:

  • use options mprint mlogic symbolgen;
  • insert %put statements so that you can see the state of variables, or identify when points in your logic are reached
  • unless you use nested %IF statements or %DO loops, macro code can be run as normal code with a current SAS release, which allows "open code" %IF %THEN %DO %END
  • start with inserting the FDELETE action into a small macro, then expand it step by step until you arrive at your original macro code
Astounding
PROC Star
Perhaps your macro fails to contain a %MEND statement.

Perhaps your program defines the macro but fails to call the macro.
ballardw
Super User

Did you have code that worked without creating a macro? First step in macro development is generally non-macro code that works. Then use that to create macro code.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1133 views
  • 0 likes
  • 5 in conversation