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

ISPF Panel commands DDLIST /LISTBOX


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

New User


Joined: 06 Aug 2020
Posts: 3
Location: USA

PostPosted: Thu Aug 06, 2020 11:25 pm
Reply with quote

I have read the ISPF Dialog Tag Language manual, IBM Knowledge Center site, looked around this site and done a fair amount of google searching before coming here to ask this.

I want to make an ISPF Panel with a drop down list. For now I just want to make a real basic panel with the drop down to get it working.The example from IBM is lacking to say the least. Does anyone have a working example of either of those commands?

Right now my department is making a table to display as a popup panel when they want to display list. I feel this is more trouble for a smaller list. I work in the automation dept using REXX if that helps also.

Thanks
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Aug 12, 2020 4:40 am
Reply with quote

Quote:
The example from IBM

There are several ISPF installation data sets:
panel - SISRPLIB
skeleton - SISRSLIB
tables - SISRTLIB
etc...

There are several such data sets. IBM provides the DTL source for every panel in ISPF. I forgot the file type... look at all SISR*LIB (maybe also look at SISP*LIB data sets. or maybe SISR*ENU for English). Find a simple ISPF panel that you want to use as a model and then look for it in the DTL data sets.

Actually, there are two SISR*LIB (? SISR*ENU) data sets for DTL. One has the DTL source for the panels and another data set has various include files. (I forget the particulars of the names and I do not have access to z/OS any more.)
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Aug 12, 2020 6:10 am
Reply with quote

To get the pull down list, add something like this to the DTL file, after the <PANEL tag:
Code:
<ab>
  <ABC HELP=USRIPRHA>Help
      <PDC HELP=USRIPRHB >Help for Help...
           <ACTION RUN=USRCB >
      <PDC HELP=USRIPRHC >Extended help...
           <ACTION RUN=EXHELP  >
      <PDC HELP=USRIPRHD >Keys help...
           <ACTION RUN=KEYSHELP >
      <PDC HELP=USRIPRHF >About...
           <ACTION RUN=USRCF >
  </ABC>
</ab>


I do not have an example, but I recall that I used
Code:
<ACTION SETVAR=myvar1 VALUE=1>

Then later in the rexx had a SELECT statement that handled the possible values of MYVAR1.
Back to top
View user's profile Send private message
Wesley

New User


Joined: 06 Aug 2020
Posts: 3
Location: USA

PostPosted: Wed Aug 12, 2020 6:05 pm
Reply with quote

This is the example panel definition for DDLIST from IBM knowledge center that I used:

)ATTR
@ TYPE(CEF) DDLIST(ON) CSRGRP(1)
$ TYPE(SAC) DDLIST(ON) CSRGRP(1)
# TYPE(SAC)
)BODY
%-------------------Sample List Panel---------------------------------

+Terminal Characteristics:
+Screen format
@Z $1.#Data+ $3.#Max+
$2.#STD+ $4.#Part+

)END

And for LISTBOX:

)ATTR
@ TYPE(CEF) LISTBOX(ON) CSRGRP(1) DEPTH(4)
$ TYPE(SAC) LISTBOX(ON) CSRGRP(1)
# TYPE(SAC)
)BODY
%-------------------Sample List Panel---------------------------------

+Terminal Characteristics:
+Terminal Type
@Z $1.#3277+ $5.#3290A+
$2.#3277A+ $6.#3278T+
$3.#3278+ $7.#3278CF+
$4.#3278A+ $8.#3277KN+

)END
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Aug 12, 2020 10:59 pm
Reply with quote

From the ISPF Dialog Developer's Guide and Reference:
Quote:
DDLIST
Enables you to define choices for a single choice selection list and display the
list in a drop-down box in GUI mode. A drop-down list is a variation of a list
box (see LISTBOX Keyword). A drop-down list initially displays only one item
until you take action to display the rest of the items in the list.


ISPF provides a work station agent (WSA)... it lets you use a GUI using Windows interfaces. I do not think DDLIST works in non-GUI mode (likewise with LISTBOX). Please clarify if you are using WSA or ISPF on a 3270 emulator.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Aug 12, 2020 11:17 pm
Reply with quote

re: "This is the example panel definition for DDLIST from IBM knowledge center that I used"

It is not clear how far you have gotten in your prototype. You mentioned DTL earlier, so my response was a DTL suggestion. But your subsequent post was not DTL.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Wed Aug 12, 2020 11:25 pm
Reply with quote

Quote:
ISPF provides a work station agent (WSA)... it lets you use a GUI using Windows interfaces.

fyi. I never cared for the WSA because I used the editor heavily for its context sensitive coloring, which does not work on the WSA. Though, I did use the WSA in non-GUI mode (edit Windows files from the 3270 emulator)
Back to top
View user's profile Send private message
Wesley

New User


Joined: 06 Aug 2020
Posts: 3
Location: USA

PostPosted: Thu Aug 13, 2020 5:32 pm
Reply with quote

Pedro thank you for taking the time to answer. I mentioned DTL as well as IBM Knowledge Center as places I went before coming here to ask the question. I did not just use DTL as the sole source for coding since it is only mentioned there but no examples are given. That is why I went to other places for that. I found the one I posted and tried to use it. When I did I had to add a zvars to get the panel to display. Now it still doesn't show as a drop box. After further reading I finally made an account to ask how to do this in here.

I'm starting to believe that DDLIST and LISTBOX don't really exist or work since I can't find examples anywhere.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Aug 13, 2020 10:07 pm
Reply with quote

According to the manual they exist but only in GUI mode i.e. WSA - not native mainframe.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Thu Aug 13, 2020 10:58 pm
Reply with quote

The first problem is that you are using GUI terms in your posts, where almost every ISPF developer uses a text based user interface (not graphical). It seems that the terminology is different.

For DDLIST, I think what you want is an action bar with pull down choices. You need to become familiar with the )ABC, )ABCINIT, and )ABCPROC sections of the panel. See Chapter 7 of the ISPF Dialog Developers Guide and Reference, SC19-3619. I did not see a complete example, but perhaps you can study figure 47 (maybe figure 35 is slightly more complete).

fyi. This is probably a personal preference, but I prefer a PDF manual rather than the Knowledge Center. See www-01.ibm.com/servers/resourcelink/svc00100.nsf/pages/zOSV2R4IspfPublications?OpenDocument
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Thu Aug 13, 2020 11:26 pm
Reply with quote

re: LISTBOX
Quote:
I feel this is more trouble for a smaller list


I think a panel with a scrollable area is appropriate, and within a pop up panel. Though if your list is long, use an ISPF table display, as you said. Search the manual for 'scrollable area'.

For a single selection list, have something like
Code:

Select an item . . __
1. Proximity of public K-12 schools
2. Proximity of child-friendly parks
3. Proximity of grocery shopping
4. Proximity of fast food
5. Proximity of fine dining
6. Neighborhood walkability
7. Availability of public transit
8. Proximity of hospital and medical services
9. Level of traffic noise
10. Access to major highways


Where the instruction is before the scrollable area and is immediately followed by a numbered list in the scrollable area.

For a multi selection list, have something like:
Code:
Options:
  Enter "/" to select option
  /  Leather seats
  /  Front seat warmers
  _  Rear bucket seats
  _  Rear seat warmers
  _  Front sun roof
  _  Rear sun roof
  _  Privacy cloque
  /  Food synthesizer
  /  Advanced waste recycling system
  /  Turbo vertical take-off capability
 
 

where the instructions are above the scrollable area. And each item has a unique entry field so that it can be specified.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Thu Aug 13, 2020 11:33 pm
Reply with quote

Quote:
I did not see a complete example, but perhaps you can study...

You can look at the source for every ISPF panel. Use the PANELID command to see the member names, which are shown in the upper left. Find an ISPF panel that is somewhat similar to what you are trying to do.

Use TSO ISRDDN and find your ISPPLIB concatenation. Use the V option to view the ISPF data sets. Then scroll to the member name that you want to use as a model.
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 Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Call program, directly from panel CLIST & REXX 9
Search our Forums:

Back to Top