Help using Base SAS procedures

SAS :Debug Options

Reply
N/A
Posts: 0

SAS :Debug Options

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
Super Contributor
Super Contributor
Posts: 3,174

Re: SAS :Debug Options

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.
N/A
Posts: 0

Re: SAS :Debug Options

your information helped me .. Thanks ..
Valued Guide
Posts: 2,174

Re: SAS :Debug Options

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
N/A
Posts: 0

Re: SAS :Debug Options

Thanks for ur reply...
Ask a Question
Discussion stats
  • 4 replies
  • 178 views
  • 0 likes
  • 3 in conversation