Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to debug a online program in ADSO

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
View previous topic :: :: View next topic  
Author Message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Mon Feb 09, 2009 12:13 pm    Post subject: How to debug a online program in ADSO
Reply with quote

Hi,

How to debug a online program in ADSO.

Is it possible using adsalive?
Back to top
View user's profile Send private message

vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 63
Location: Chennai

PostPosted: Tue Feb 10, 2009 6:03 pm    Post subject: Reply to: How to debug a online program in ADSO
Reply with quote

Yes Deepak,

We can debug ADSO Dailogs using ADSAlive.

Please find attached ADSAlive doc.....it wll help you on Debug.

Copyright attachment deleted - do not post copyright material or links to same

Regards
Vjay
Back to top
View user's profile Send private message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Tue Feb 10, 2009 8:16 pm    Post subject: Reply to: How to debug a online program in ADSO
Reply with quote

i need to debug the batch-online program not the dialog.
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Mon Feb 16, 2009 9:43 am    Post subject:
Reply with quote

Hi Deepak Singh,

You cont debug online programs using ADSALIVE. Instead of that you can add a queue in the online program for debug.
Back to top
View user's profile Send private message
deepak.kec

New User


Joined: 26 Feb 2007
Posts: 71
Location: bangalore

PostPosted: Mon Feb 16, 2009 6:12 pm    Post subject:
Reply with quote

Hi Nelson,

Thanks for the update. Could you please elobrate more on debugging online program using a queue.
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Wed Feb 18, 2009 11:44 am    Post subject:
Reply with quote

Hi Deepak,

Queue in online program just same as we give display statement in general cobol. In online programs we use to move the display statements to the queue. After the execution completes, We can just check the queue for the flow, as we check the sysout for the display statements in general cobol program
Code:
01  WS-DEBUG  PIC X(100). --> Diclare a variable


*Move the display statements to the variable diclared and call the queue para.

MOVE '<display statements>' TO WS-DEBUG.
      PERFORM 1111-DEBUG THRU 1111-EXIT.                 

*Here the displayed value which is moved to the variable will be written to the queue.
*<queue id> --> should be of 8 char long or lesser than that

1111-DEBUG.                                         
    PUT QUEUE ID '<queue ID>' FROM WS-DEBUG LENGTH 100
      ON ANY-STATUS MOVE '0000' TO ERROR-STATUS.     
    COMMIT TASK                                     
      ON ANY-STATUS MOVE '0000' TO ERROR-STATUS.     
     MOVE SPACES TO WS-DEBUG.                       
1111-EXIT.                                           
    EXIT.                                           


This is command we use to view the queue
Code:
ADS OSBZDQLK
Give this command in the online region.

Hope this helps you icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us