ISPF Table Read and Display



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

ISPF Table Read and Display

Postby Anikot » Sun Nov 27, 2011 9:30 pm

I am trying to display the content of an ISPF table to ISPF panel. All my codes are working but data is not displaying in the Panel screen. Panel shows the number of rows a the top but no data display. I am beginer, please help..

Rexx Code
ADDRESS ISPEXEC "TBOPEN TOOLTB NOWRITE SHARE"
ADDRESS ISPEXEC "TBTOP TOOLTB"
ADDRESS ISPEXEC "TBSKIP TOOLTB NUMBER(+1) POSITION(TBCRP)"
ADDRESS ISPEXEC "TBGET TOOLTB POSITION(TBCRP)"
ADDRESS ISPEXEC "TBDISPL TOOLTB PANEL(RPANEL0)"
ADDRESS ISPEXEC "TBCLOSE TOOLTB"

Table looks like below

TOOLNME TOOLCMD TOOLDET
----+----1 ----+----1----+----2----+----3 ----+----1----+----2----+----3---
AB G 6
A F G
BB GG A


Panel Code

% COMMAND INPUT ===>_COMOPTN %SCROLL ===>
%-----------------------------------------------------------------------
% TOOL NAME TOOL COMMAND TOOL DESC.
%---------- --------------------------- ----------------------------
%
)MODEL
@DSNDATA
)INIT

&COMOPTN = ''
&AMT = PAGE

)PROC
&PFKEYV = .PFKEY

VER(&COMOPTN,NONBLANK,LIST,'ENTER',MSG=test1)
Anikot
 
Posts: 3
Joined: Sun Nov 27, 2011 9:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ISPF Table Read and Display

 

Re: ISPF Table Read and Display

Postby MrSpock » Mon Nov 28, 2011 4:06 am

What's the relationship between the panel variable "DSNDATA" and the contents of the table TOOLTB?
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: ISPF Table Read and Display

Postby Anikot » Mon Nov 28, 2011 6:50 am

I just copied the panel code from internet and didnt change the variable name DSNDATA. I was planning to take 3 column from ISPF table TOOLNME TOOLCMD TOOLDET and concatenate (and format) to one string and pass it to DSNDATA to display in the ISPF panel.
Anikot
 
Posts: 3
Joined: Sun Nov 27, 2011 9:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ISPF Table Read and Display

Postby mongan » Mon Nov 28, 2011 1:12 pm

Normally your table field names exist in the panel. So said in your last post that you planned on creating the dsndata field, but your posted code does not do that, so either your left code out or you need to do some more coding. Examine some panels and tables that work to understand the principles involved.
User avatar
mongan
 
Posts: 212
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

Re: ISPF Table Read and Display

Postby enrico-sorichetti » Mon Nov 28, 2011 1:20 pm

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: ISPF Table Read and Display

Postby Anikot » Mon Nov 28, 2011 2:09 pm

Thank you. I understood the mistake, I used the same table fields in the panel and it wroked. Thank you
Anikot
 
Posts: 3
Joined: Sun Nov 27, 2011 9:13 pm
Has thanked: 0 time
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post