Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Creating panels dynamically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
malathy_tv

New User


Joined: 29 May 2007
Posts: 34
Location: chennai

PostPosted: Tue May 06, 2008 3:29 pm    Post subject: Creating panels dynamically
Reply with quote

Can any one please let me know how do we create panels dynamically?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Tue May 06, 2008 4:06 pm    Post subject: Reply to: Creating panels dynamically
Reply with quote

What do you mean by "dynamically"? Can you give an example?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue May 06, 2008 4:29 pm    Post subject:
Reply with quote

Since ISPF panels are basically members of PDS, and since you can create PDS members dynamically - the answer is yes.

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Tue May 06, 2008 8:55 pm    Post subject:
Reply with quote

If you mean "create a panel on-the-fly before displaying it in my program",
Then, as Ofer says, the answer is yes.
However, panel contents is dynamic, that's why you have variables inside.
So you can have a single panel which contents will be completely different each time you display it.

If you mean "create a panel just by drawing it, the panel code will be dynamically generated",
Then, well, panels are pretty much like screen drawings, so there is not much use for such a tool.

Please rephrase your question, so we can answer to the point.
Back to top
View user's profile Send private message
malathy_tv

New User


Joined: 29 May 2007
Posts: 34
Location: chennai

PostPosted: Wed May 07, 2008 10:20 am    Post subject:
Reply with quote

Hi,

say i want to diplay a panels as below and this may vary as many employees are there. hence i cannot design a static screen like at max only 20 employees so i need to design screen dynamically which will repeat so many employess are there
Panel:
name empid
axx 10001
bxx 10002
cxx 10003

i dont want a static code like this:
#nam1 #emp1
#nam2 #emp2
#nam2 #emp3

i need this code to vary with the number of employees.
this is my question. please help on the same
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1232
Location: Israel

PostPosted: Wed May 07, 2008 3:34 pm    Post subject: Reply to: Creating panels dynamically
Reply with quote

In the panel, use the )MODEL to define a scrollable area.
Use an ISPF table to save the data (one row in the table = one row on the screen).
Use TBDISPL instead of DISPLAY.

For more information, search the forum (and/or the internet) for TBDISPL or )MODEL.
Back to top
View user's profile Send private message
malathy_tv

New User


Joined: 29 May 2007
Posts: 34
Location: chennai

PostPosted: Wed May 07, 2008 4:07 pm    Post subject:
Reply with quote

can you please tell me how is )MODEL and ISPF tables connected.
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Mon May 12, 2008 9:49 pm    Post subject: Reply to: Creating panels dynamically
Reply with quote

As Marso said, use TBDISPL service instead of DISPLAY. It will provide a scrollable panel. And the panel should have )MODEL section.

Your panel would look something like this:

Code:

)BODY  EXPAND(//)
// Some Heading //
Command ==>_ZCMD                            +
 
  Employee Name      Employee id
)MODEL
 _EMPNAME           _EMPID               + 



Where the variables in the model section are the same variables as are used in the ISPF table.
Back to top
View user's profile Send private message
vidyaa

New User


Joined: 02 May 2008
Posts: 72
Location: chennai

PostPosted: Tue May 27, 2008 3:57 pm    Post subject:
Reply with quote

Thank you so much
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Creating an 'Enter' event with IMS MF... dileep chirasani Java & MQSeries 1 Sat Aug 06, 2016 2:23 am
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts PL/I: opening file w/ dynamically det... Sam Dodgers PL/I & Assembler 6 Wed Jul 27, 2016 4:05 pm
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us