How to debug a SAS program in batch job on UNIX using PUT statement or any other? -


i tried debug sas batch program on unix using /debug in data step, throwing error because /debug can used in interactive mode. error message: error: cannot open x display. check display name/server access authorization.

error: unable initialize data step debugger environment.

then started running sas code put (all)(=); creating huge log file. there other way debug sas code not print error , n variables in log when there data error.

thanks, kumar.

you can debug intelligently; means, figure out can go wrong, , use put statements @ variables.

you don't have limit log; example, might debug data (in do, data more 'wrong' program, after i've finished writing first iteration) creating dataset contains statement false given correct data, if contains rows, shows problem - proc print dataset obvious title ("error has data , should not because of *reason*").

in terms of resolving how data step not working particular program, can put things log in few different places 1 iteration - set obs=1 , run things (if possible based on program). or output dataset @ each step in data step, can see progression in dataset rather in log.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -