AllExperts > Experts 
Search      
AS400 Mid Range
Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More AS400 Mid Range Answers
Question Library

Ask a question about AS400 Mid Range
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About 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

 
   

You are here:  Experts > Computing/Technology > Systems Management (Computing & Software) > AS400 Mid Range > DEBUG S36 BY STRDBG COMMAND

Topic: AS400 Mid Range



Expert: Concise Systems/Laird Scranton
Date: 3/5/2008
Subject: DEBUG S36 BY STRDBG COMMAND

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

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.