Page 1 of 1

ISPF Table Read and Display

PostPosted: Sun Nov 27, 2011 9:30 pm
by Anikot
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)

Re: ISPF Table Read and Display

PostPosted: Mon Nov 28, 2011 4:06 am
by MrSpock
What's the relationship between the panel variable "DSNDATA" and the contents of the table TOOLTB?

Re: ISPF Table Read and Display

PostPosted: Mon Nov 28, 2011 6:50 am
by Anikot
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.

Re: ISPF Table Read and Display

PostPosted: Mon Nov 28, 2011 1:12 pm
by mongan
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.

Re: ISPF Table Read and Display

PostPosted: Mon Nov 28, 2011 1:20 pm
by enrico-sorichetti

Re: ISPF Table Read and Display

PostPosted: Mon Nov 28, 2011 2:09 pm
by Anikot
Thank you. I understood the mistake, I used the same table fields in the panel and it wroked. Thank you