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
 

 

How to SEARCH in panels

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

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Wed Dec 10, 2008 4:41 pm    Post subject: How to SEARCH in panels
Reply with quote

HI ALL,

Could you pls tell me how to search the fieldnames that are coded in body section in a panels as if we execute F ALL in tso command line similarly if i type F ALL CODE in command line in my panel it should highlight the code that i defined in panel's BODY section and when i press RFIND=F5 it should repeat for next occurence in same panel

Code:
)PANEL KEYLIST(KEYPAX,TAR,SHARED)                                       
)ATTR                                                                   
* TYPE(TEXT)                                                           
$ TYPE(TEXT) INTENS(LOW) COLOR(TURQ)                                   
( TYPE(TEXT) INTENS(HIGH) COLOR(RED)                                   
! TYPE(TEXT) INTENS(HIGH) COLOR(WHITE)                                 
# TYPE(TEXT) INTENS(HIGH) SKIP(ON)                                     
% TYPE(INPUT) INTENS(HIGH) COLOR(TURQ) JUST(RIGHT) HILITE(USCORE)       
_ TYPE(OUTPUT) INTENS(HIGH) COLOR(WHITE) HILITE(USCORE)                 
)BODY                                                                   
!-------------------------------------------------------------------------------------
$ ENTER ==>%ZCMD              # $I - INDEX F-FIND !|| COMMAND ==>%Z     
!----------------------------- PAGE %PNO# OF 200 -----------------------------
*code1  :_Z    #                 
*code2  :_Z  #                   
*code3  :_Z     #   


above is a panel it should highlight code in body section and proceed to next code on pressing F5



Thans in advance

Edited: Please use BBcode when You post some code, that's rather readable, Thanks...Anuj
Back to top
View user's profile Send private message

Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Dec 10, 2008 7:51 pm    Post subject:
Reply with quote

The program displaying the panel would be responsible for acting upon the command, seaching the values in the fields and positioning the cursor prior to the next display.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1228
Location: Israel

PostPosted: Wed Dec 10, 2008 10:10 pm    Post subject: Reply to: HOW TO SEARCH IN A PANELS
Reply with quote

The only way to recognize a variable from plain text is by checking the attribute.

You would have to search the )ATTR section for TYPE(OUTPUT) or TYPE(INPUT), without forgetting the default attributes,
Then search the )BODY for these attributes. The variable name comes immediatly after it.

Seems a lot of work to me, specially knowing that there are other TYPE(xxx) to consider, there are the ZVARS, and more things like )MODEL and so on...
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Dec 11, 2008 2:12 am    Post subject: Reply to: How to SEARCH in panels
Reply with quote

Your example does not have one, but you can also have variables specified through an ampersand.
Back to top
View user's profile Send private message
bhuspin

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Thu Dec 11, 2008 9:42 am    Post subject: Reply to: How to SEARCH in panels
Reply with quote

Thanks for Pedro,Marso & Bill

But could you pls explain clearly further on the same
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Dec 11, 2008 10:27 pm    Post subject: Reply to: How to SEARCH in panels
Reply with quote

Your rexx program could set a value like this:
Code:
dsn1 = 'user.jcllib'

and your panel could have some thing like this:
Code:

)BODY
Enter the volid for &dsn1             _mydsn                       +

In your search for variables, you would need to look for both the attribute of '_' and for the ampersand.
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 Search a Load Module sreekanth1984 TSO/ISPF 8 Tue Jun 07, 2016 8:45 pm
No new posts Copy one PDS to another PDS based on ... alluri12 JCL & VSAM 10 Tue Sep 29, 2015 8:10 pm
No new posts Search and replace the key in the report V S Amarendra Reddy SYNCSORT 1 Thu Jul 09, 2015 7:41 pm
No new posts Search Member Name in Library (DSORG=... jackare JCL & VSAM 9 Thu Jun 25, 2015 8:15 pm
No new posts Suggestion on Search and Split using ... shiitiizz DFSORT/ICETOOL 14 Tue Jun 16, 2015 1:20 pm


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