IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to debug a online program in ADSO


IBM Mainframe Forums -> IDMS/ADSO
Post new topic   Reply to topic
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IDMS/ADSO

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top