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

TBDISPL RC=20


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 64
Location: Germany

PostPosted: Tue Mar 02, 2010 8:29 pm
Reply with quote

Hi,

I have a problem with TBDSIPL when I select more then one row.
This is the Coding for a simpe test :

Code:
ADDRESS ISPEXEC "TBDISPL btab PANEL(LAMBT) ROWID(rid)"
                                                     
do while rc < 8                                                                 
   if rc >= 8 then leave                             
                                                     
   do while ztdsels > 0   
       select               
          when sel = 'S' then
             say rid         
          otherwise         
             nop             
       end             

       if ztdsels > 1 then                   
          ADDRESS ISPEXEC "TBDISPL btab"     
       else                                   
          ztdsels = 0                         
    end                                       
                                             
    "TBDISPL btab PANEL(LAMBT) ROWID(rid)"   
 end 


Panel definition:

Code:
%S  COBOL-Structur LAM-BT               
+-  -------------------------------------
)MODEL ROWS(ALL) CLEAR(SEL)             
$Z+"def                                 
)INIT                                                                                   
  .ZVARS = '(sel)'   



When I trace the coding I got this error :

38 *-* if ztdsels > 1
>>> "1"

*-* then
39 *-* ADDRESS ISPEXEC "TBDISPL btab"
>>> "TBDISPL btab"
+++ RC(20) +++

Can anybody help me, I've no idea what the problem is. icon_sad.gif
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Tue Mar 02, 2010 11:30 pm
Reply with quote

print out variables ZERRSM and ZERRLM. They may hold the answer
Back to top
View user's profile Send private message
oerdgie

New User


Joined: 22 Nov 2007
Posts: 64
Location: Germany

PostPosted: Wed Mar 03, 2010 1:56 am
Reply with quote

Thanks a lot ! icon_biggrin.gif

I found the error, it was detected in the panel definition.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts TBSARG - Deleting the search criteria... TSO/ISPF 6
No new posts Trouble Scrolling TBDISPL in my Panel TSO/ISPF 6
No new posts Forcing a single (or no) selection wi... TSO/ISPF 5
No new posts TBDISPL for width > 80 TSO/ISPF 6
No new posts Two TBDISPL Questions TSO/ISPF 5
Search our Forums:

Back to Top