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
 
use of loop in ispf panel
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 510
Location: work

PostPosted: Mon Sep 22, 2008 9:27 pm    Post subject: Reply to: use of loop in ispf panel
Reply with quote

Quote:
i select a certain condition the corresponding piece of code will be displaying in the panel


For code, you may want to allow the user to EDIT the code. In which case, I would recommend using the editor instead of a display, table display, or dynamic area.
Back to top
View user's profile Send private message
References
JOYEETA PAUL
Warnings : 1

New User


Joined: 18 Sep 2008
Posts: 17
Location: bangalore

PostPosted: Tue Sep 23, 2008 5:06 pm    Post subject:
Reply with quote

These are the records in my ps file----
**** LAW 1 ****
DO-IF HSC IS 'S9999 ' @ CR107759 @-
AND BRQ-CODE IS (19,25,26) @ @-
AND LINE-ITS-PRICING-METHOD IS-NOT '01' @ @
LIMIT $ @ @
****************
**** LAW 2 ****
DO-IF HSC IS 'S0099 ' @ CR107759 @-
AND BRQ-CODE IS (19,25,26) @ @-
AND LINE-ITS-PRICING-METHOD IS-NOT '00' @ @
LIMIT $0 @ @
****************
end of file.
now i want to display only the law1(1st part of code) records from the file to a panel - this is my requirement. i am not suppose to display records in rexx screen.at the starting i used EXECIO in rexx to read records one by one. this piece of code should be displayed in one panel only.so i have used an arraylike z.i in rexx and used the variable (like z.1 for 1st line of rec,z.2 for 2nd line of rec and so on)in panel like z.1,z.2etc. but this is not possible in my prog as i have more 100 lines of rec.so i want to use a loop in panel with a variable which will show the lines of rec in panel by changing its instead of using z.1,z.2 etc.

i think now it is somewhat clear!!! icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 3082
Location: italy

PostPosted: Tue Sep 23, 2008 5:29 pm    Post subject: Reply to: use of loop in ispf panel
Reply with quote

looks like You are trying to build a folding editor

the simplest approach would be to write an edit macro to
analyze the lines and exclude those not wanted

exlude all
find first line to be shown according to some syntax
unexclude all the lines until
according to Your syntax the unexclude/unfold token is reached

( do not forget the nesting level )
Back to top
View user's profile Send private message
JOYEETA PAUL
Warnings : 1

New User


Joined: 18 Sep 2008
Posts: 17
Location: bangalore

PostPosted: Tue Sep 23, 2008 5:59 pm    Post subject: Reply to: use of loop in ispf panel
Reply with quote

ok.can you pls give me example of the folding editor.
actually i m not that much familier with the macro
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 HoursGoto page Previous  1, 2
Page 2 of 2