|
View previous topic :: View next topic
|
| Author |
Message |
suryamtechcse Warnings : 1 New User
Joined: 28 Apr 2006 Posts: 9 Location: Chennai
|
|
|
|
Please assume that there are 50 members in my PDS and I wanted to display all these members in my panel that should work with PAGEUP/PAGEDOWN logic. In case I delete one of my members in PDS the 49 copybooks should be shown on the panel (i.e. to have a dynamic panel).
Could you please help me in getting the panel as well as source code for it.
Ans:
As per my assumption, I am using tables with scrollable areas (SAREA). Is it correct?? below is my piece of code
ADDRESS ISPEXEC
"TBCREATE LISTTAB1 KEYS(MEMBERS) NAMES(SELECT) WRITE REPLACE"
CALL LIST_PARA
ADDRESS ISPEXEC
"TBDISPL LISTTAB1 PANEL(SCRLIST)"
LIST_PARA:
X = OUTTRAP('VAR.')
ADDRESS TSO
Rptdsn = PGM_DSN
Mydsn = "'"Rptdsn"'"
"LISTDS" Mydsn "MEMBERS"
X = OUTTRAP('OFF')
DO I = 1 TO VAR.0
IF VAR.I = '--MEMBERS--' THEN
LEAVE
END
K = 1
DO J = I+1 TO VAR.0
SAY 'J OUTPUT MEMBERS:' VAR.J
MEMM.K = VAR.J
SAY 'K =' K
SAY 'VALUE FOR K:' MEMM.K
K = K+1
MEMM.K = VAR.J
ADDRESS ISPEXEC
"TBADD LISTTAB1"
SAY 'TABLE IS ADDED SUCCESSFULLY:' VAR.J
END
Pls help me. |
|
| Back to top |
|
 |
suryamtechcse Warnings : 1 New User
Joined: 28 Apr 2006 Posts: 9 Location: Chennai
|
|
|
|
| I want to display the members in REXX panel which is having Scrollable area(SAREA) using REXX tables. Pls help in this regard |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
You will need to look at chapter 6 of the ISPF manual linked to HERE
Please note that the panels and tables are ISPF elements and not REXX. So please use the correct terminolgy in future. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
| Back to top |
|
 |
suryamtechcse Warnings : 1 New User
Joined: 28 Apr 2006 Posts: 9 Location: Chennai
|
|
|
|
| Could pls help me in getting exact logic for this. I mean the steps that need to follow for this scenario |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
search the ISPF manuals for the LMMDISP service description
the link to the manual is in my previous post
for sample on LMMLIST use see
www.sillysot.com/ftp/scanpds.txt
the script is doing something else,
but the DO for the LMMDISP is quite clear |
|
| Back to top |
|
 |
suryamtechcse Warnings : 1 New User
Joined: 28 Apr 2006 Posts: 9 Location: Chennai
|
|
|
|
Thanks. I will try with LMMDISP. I just want to confirm two questions
1. What is DataID in this command? Is it user defined one?
2. This command LMMDISP is valid for Scrollable area defined in Panel?. |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| Quote: |
1. What is DataID in this command? Is it user defined one?
2. This command LMMDISP is valid for Scrollable area defined in Panel?. |
1) look at the manual ( I gave You the link )
2) look at the manual again
LMMDISP does not use scrollable areas, the panel You will get is exacly the same You would get in a member list for browse/view/edit/ISPF member list |
|
| Back to top |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
|
|
| Quote: |
Please assume that there are 50 members in my PDS and I wanted to display all these members in my panel that should work with PAGEUP/PAGEDOWN logic. In case I delete one of my members in PDS the 49 copybooks should be shown on the panel (i.e. to have a dynamic panel).
|
what You are trying to achieve is exactly what You would get from
option 3.1 |
|
| Back to top |
|
 |
suryamtechcse Warnings : 1 New User
Joined: 28 Apr 2006 Posts: 9 Location: Chennai
|
|
|
|
As per your suggestion, I tried with LMMDISP command but I am not getting members in my panel
my panel looks like
-------------------------------------------------------
-------------------------------------------------------
list of members
Members
-------------------------------------------------------------
-------------------------------------------------------------
My Code is
/* Rexx */
trace i
oudsn='TS.PAF2.PASSER.SIT'
address ISPEXEC
"LMINIT DATAID(ouid) DATASET('"oudsn"') ENQ(SHRW)"
"LMOPEN DATAID("ouid") OPTION(OUTPUT)"
"LMMDISP DATAID("ouid") OPTION(DISPLAY) STATS(YES) MEMBER(A*)"
do until rc>0
say '.'
"LMMDISP DATAID("ouid") OPTION(GET) STATS(YES)"
end
"LMCLOSE DATAID("ouid")";"LMFREE DATAID("ouid")"
exit
Pls help me |
|
| Back to top |
|
 |
|
|