关于SM50的Debug(轉)

SM50可以Debug后台程序
 
JOB Debug Method
1.In SM37, select a job that has not yet been started (status 'planned' or 'released'). In addition, set a breakpoint at the point in the source code that you want to analyze when debugging. In SM37, enter JDBG in the OK code field, and select ENTER. The selected job is now started in debug mode, and the debugger initially stops in a system program. Select F8 to continue the job up to the next breakpoint.
Caution: After debugging, the job still appears in SM37 as 'planned' or 'released', but the entire job (or, more specifically, a copy of it) ran during debugging, and possible database changes are effective as a result of the job.
 
2.You can catch a current batch job by using SM37 (Catch active job) or SM50 (Debug program). To do this, you must be logged on to the instance on which the job is running. The job is then stopped, and you can keep it running in the debugger.
 
3.Use SM36 to create a job with two steps, step 1 with the BTCLOOP report and step 2 with the report to be debugged. Then release the job.
You can then debug the job in Transaction SM50. To do this, exit the endless loop in the BTCLOOP report by changing the variable I.
 
 
PROGRAM BTCLOOP MESSAGE-ID BT. "470
DATA:
  I TYPE I.
  I = 0.
  DO.
    if i ne 0.
       exit.
    endif.
  ENDDO.
注:有的系统Report BTCLOOP跟这段代码不同,不好跳出来

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22575590/viewspace-625723/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22575590/viewspace-625723/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值