AS400 Mid Range/DEBUG S36 BY STRDBG COMMAND

Advertisement


Question
MY PROBLEM IS THAT  WHEN DEBUGING  BY STRDBU  A PROGRAM (S36 PGM) THAT SBMJOB
I CANT  SEE THE SOURCE OF THE PGM  WHILE DEBUGING  (I CANT EVEN ADD THE S36PGM TO THE LIST OF PGM  BEING DEBUGED ,IT GIVE ME A MESSAGE " CAN'T ADD  OPM SOURCE TO ILE DEBUGING ENVIRONMENT)  ALTHOUG  I  STRDBUG  WITH  OPMSOURCE (*YES)
IS THERE ANY MEAN TO  DESPLAY THE SOURCE  OF  S36PGM  IN DEBUGING  USING  STRDBG    COMMAND  
I CAN'T   ALSO USE  STRISDB  WHILE THERE ARE  AJOB BEING SERVICED  BY THE COMMAND  STRSRVJOB    

SO  HOW TO SEE THE SOURCE OF THIS S36PGM  (I USE  RPGC   WHILE  COMPILEING  IT   AND THERE IS NO  OPTION LIKE  DEBUG VIEW  (*ALL)

thank u too mutch for your help

Answer
As I recall, DEBUG functions differently for System/36 programs.  I do not have access to an AS/400 in System/36 mode to give you specific examples, but I believe you insert lines into your program using the DEBUG operation code and the field whose value you wish to view in the RESULT field.  Code a '1' in column 15 of the 'H' specification line to enable the DEBUG statements, or a blank to disable them, then recompile the program.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.