Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to make a dynamic panel for CLIST

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
nickyboy

New User


Joined: 26 Aug 2005
Posts: 18

PostPosted: Thu Sep 22, 2005 12:50 pm    Post subject: How to make a dynamic panel for CLIST
Reply with quote

Hi all..

I want make a panel for my CLIST where the number of input fields are dynamic..

If I pass (say 10) it should display a panel with 10 input fiels namely field 1,field 2....field 10.

Nick.
Back to top
View user's profile Send private message
References
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 478
Location: Milan, Italy

PostPosted: Thu Sep 22, 2005 5:08 pm    Post subject:
Reply with quote

I'm not sure of what you really want but I suppose that you must determine before which kind of dynamical style you want to adopte.
I mean, you can "build"(I'm not sure of correct use of this term) your panel writing the source to your need what you need more?
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 255

PostPosted: Thu Sep 22, 2005 11:47 pm    Post subject: Re: How to make a dynamic panel for CLIST
Reply with quote

Maybe this will work for you?

Panel Definition:
Code:

)ATTR DEFAULT(%+_)                                       
  $ TYPE(INPUT)   INTENS(LOW) PAD(_)                     
  ! TYPE(INPUT)   INTENS(LOW) PAD(' ')                   
  @ TYPE(OUTPUT)  INTENS(LOW)                             
 01 TYPE(TEXT)    INTENS(&T1)                             
 02 TYPE(&TY1)    INTENS(&I1) PAD(&P1)                   
...
 1D TYPE(TEXT)    INTENS(&T15)                                         
 1E TYPE(&TY15)   INTENS(&I15) PAD(&P15)                               
)BODY                                                                   
%--------------------  TITLE FOR ENTRY PANEL  --------------------------
%COMMAND ===>_ZCMD                                                     
%                                                                       
+   THIS DIRECTION LINE TELLS THE USER HOW TO USE THE PANEL:           
+                                                                       
 ENTER LINE 1   Z1        +                                             
 ENTER LINE 2   Z2        +                                             
...
 ENTER LINE 15  Z15       +     
)INIT                           
)PROC                           
)END           


The CLIST:

Code:

PROC 1 CNT                                                   
DO N = 1 TO 15                                               
  SET &T&N  = &STR(HIGH)                                     
  SET &TY&N = &STR(INPUT)                                   
  SET &I&N  = &STR(LOW)                                     
  SET &P&N  = &STR(_)                                       
END                                                         
IF CNT = 14 THEN                                             
  DO                                                         
    SET &T15  = &STR(NON)                                   
    SET &TY15 = &STR(OUTPUT)                                 
    SET &I15  = &STR(NON)                                   
    SET &P15  = &STR()                                       
  END                                                       
ISPEXEC LIBDEF ISPPLIB DATASET ID(ISPPLIB)                   
ISPEXEC DISPLAY PANEL(THEPANEL)                             
ISPEXEC LIBDEF ISPPLIB                                       


I'm REALLY rusty on my CLIST, but hopefully you get the idea.
Back to top
View user's profile Send private message
nickyboy

New User


Joined: 26 Aug 2005
Posts: 18

PostPosted: Tue Sep 27, 2005 4:43 pm    Post subject:
Reply with quote

Thanks Kevin..I got what you meant..
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 255

PostPosted: Tue Sep 27, 2005 5:37 pm    Post subject: Re: How to make a dynamic panel for CLIST
Reply with quote

That's good to know. My CLIST coding is really rusty! icon_smile.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1