BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Ques: Debug For data step used in Macros...

If i have 100or more of data steps ....how can i debug rather using for each datastep /debug ? Any other options to trace the code ??

For valuable suggestions & replies...
Thanks in advance ....
giri
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You can add SAS log diagnostic statements such as PUTLOG either with _ALL_; or selected SAS variables -- and when you have multiple per DATA step, you can use a "tag" identifier placed in the PUTLOG, such as:

PUTLOG ">DIAG1>" / _ALL_;

Of course, other techniques for "abbreviated" processing exist for testing, such as using:

OPTIONS OBS=nnn; /* limit processing to nnn observations */

Then you may also need the stmt below later depending on your DATA/PROC step flow:

OPTIONS OBS=MAX;



Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
your information helped me .. Thanks ..
Peter_C
Rhodochrosite | Level 12
I cannot imagine your challenge ~ debugging 100+ data steps ~ but can offer a systematic way to debug all data steps.[pre] option dsoptions= debug ;[/pre]Switch off the setting with[pre] option dsoptions= nodebug ; [/pre]
PeterC
deleted_user
Not applicable
Thanks for ur reply...
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 1779 views
  • 0 likes
  • 3 in conversation