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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

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